summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-18 10:40:11 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-22 10:29:57 -0500
commit5ce776ec6281727bad3219f903ac88f6e7bc2244 (patch)
treec7502bd08c4d5c75348e3e6d5e74b4c6dd4262ff
parentscore: Simplify debug code and use _Assert() (diff)
downloadrtems-5ce776ec6281727bad3219f903ac88f6e7bc2244.tar.bz2
cpukit/libmisc/shell/main_df.c: Eliminate printf() format warning
-rw-r--r--cpukit/libmisc/shell/main_df.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/main_df.c b/cpukit/libmisc/shell/main_df.c
index ec0dc7db34..ac1d5f6452 100644
--- a/cpukit/libmisc/shell/main_df.c
+++ b/cpukit/libmisc/shell/main_df.c
@@ -84,12 +84,13 @@ static bool rtems_shell_df_print_entry(
if (context->block_size > 0)
{
- printf("%-15s %10lu %9lu %11lu %9" PRIu64 "%% %14s\n",
+ printf(
+ "%-15s %10" PRIu64 " %9" PRIu64 " %11" PRIu64 " %9" PRIu64 "%% %14s\n",
mt_entry->dev == NULL ? "none" : mt_entry->dev,
(svfs.f_blocks * svfs.f_frsize + (context->block_size - 1)) / context->block_size,
((svfs.f_blocks - svfs.f_bfree) * svfs.f_frsize + (context->block_size - 1)) / context->block_size,
(svfs.f_bfree * svfs.f_frsize + (context->block_size - 1)) / context->block_size,
- (uint64_t)((svfs.f_blocks - svfs.f_bfree) * 100 / svfs.f_blocks),
+ ((svfs.f_blocks - svfs.f_bfree) * 100 / svfs.f_blocks),
mt_entry->target == NULL ? "none" : mt_entry->target);
}
else