summaryrefslogtreecommitdiffstats
path: root/http/shttpd_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'http/shttpd_ext.c')
-rw-r--r--http/shttpd_ext.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/http/shttpd_ext.c b/http/shttpd_ext.c
index dadc1be..898bbc8 100644
--- a/http/shttpd_ext.c
+++ b/http/shttpd_ext.c
@@ -30,10 +30,13 @@ void example_shttpd_callback(struct shttpd_arg *arg)
/* fprintf( stderr, "RTEMS Request -%s-\n", query ); */
if ( !strcmp( query, "cpuuse_report" ) ) {
+
+ shttpd_printf( arg, "<pre>" );
rtems_cpu_usage_report_with_plugin(
arg,
(rtems_printk_plugin_t) shttpd_printf
);
+ shttpd_printf( arg, "</pre>" );
} else if ( !strcmp( query, "cpuuse_reset" ) ) {
rtems_cpu_usage_reset();
shttpd_printf(
@@ -43,10 +46,12 @@ void example_shttpd_callback(struct shttpd_arg *arg)
END_HTML_BODY
);
} else if ( !strcmp( query, "stackuse_report" ) ) {
+ shttpd_printf( arg, "<pre>" );
rtems_stack_checker_report_usage_with_plugin(
arg,
(rtems_printk_plugin_t) shttpd_printf
);
+ shttpd_printf( arg, "</pre>" );
} else {
shttpd_printf(
arg,