diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-23 11:39:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-05-24 17:39:03 +0200 |
commit | 4acbff6c8e6ae836027ba2150c3cb6cab22176a7 (patch) | |
tree | a8b25415721b13a1356df8141451e042db64a66f /cpukit/libmisc/shell/main_lsof.c | |
parent | libblock: Fix read request block count calculation (diff) | |
download | rtems-4acbff6c8e6ae836027ba2150c3cb6cab22176a7.tar.bz2 |
shell/lsof: Use fprintf() instead of printk()
Diffstat (limited to 'cpukit/libmisc/shell/main_lsof.c')
-rw-r--r-- | cpukit/libmisc/shell/main_lsof.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/main_lsof.c b/cpukit/libmisc/shell/main_lsof.c index 993d107da8..ed0c87c1de 100644 --- a/cpukit/libmisc/shell/main_lsof.c +++ b/cpukit/libmisc/shell/main_lsof.c @@ -16,6 +16,8 @@ #include "config.h" #endif +#include <stdio.h> + #include <rtems/libio_.h> #include <rtems/shell.h> #include <rtems/shellconfig.h> @@ -35,7 +37,8 @@ static void lsof(void) rtems_chain_control *mt_entry_chain = &mt_entry->location_chain; rtems_chain_node *mt_entry_node = NULL; - printk( + fprintf( + stdout, "%c %c %s %s -> %s root 0x%08x -> 0x%08x\n", mt_entry->mounted ? 'M' : 'U', mt_entry->writeable ? 'W' : 'R', @@ -54,7 +57,8 @@ static void lsof(void) const rtems_filesystem_location_info_t *loc = (rtems_filesystem_location_info_t *) mt_entry_node; - printk( + fprintf( + stdout, "\t0x%08x -> 0x%08x\n", loc, loc->node_access |