summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell/main_blkstats.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libmisc/shell/main_blkstats.c')
-rw-r--r--cpukit/libmisc/shell/main_blkstats.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/main_blkstats.c b/cpukit/libmisc/shell/main_blkstats.c
index 50d783d76c..d814df673c 100644
--- a/cpukit/libmisc/shell/main_blkstats.c
+++ b/cpukit/libmisc/shell/main_blkstats.c
@@ -31,6 +31,7 @@ static int rtems_shell_main_blkstats(int argc, char **argv)
bool ok = false;
bool reset = false;
const char *device;
+ rtems_printer printer;
if (argc == 2) {
ok = true;
@@ -41,10 +42,12 @@ static int rtems_shell_main_blkstats(int argc, char **argv)
device = argv [2];
}
+ rtems_print_printer_printf(&printer);
+
if (ok) {
- rtems_blkstats(stdout, device, reset);
+ rtems_blkstats(&printer, device, reset);
} else {
- fprintf(stdout, "usage: %s\n", rtems_shell_BLKSTATS_Command.usage);
+ rtems_printf(&printer, "usage: %s\n", rtems_shell_BLKSTATS_Command.usage);
}
return 0;