summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-18 10:42:14 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-22 10:29:57 -0500
commit5cd910bf3a45642f64421155005d467d96e29f85 (patch)
tree3dbc4b4a861310ecf5f1f25538ef330d27b1cacc
parentcpukit/libmisc/shell/main_df.c: Eliminate printf() format warning (diff)
downloadrtems-5cd910bf3a45642f64421155005d467d96e29f85.tar.bz2
cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning
-rw-r--r--cpukit/libmisc/shell/hexdump-conv.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpukit/libmisc/shell/hexdump-conv.c b/cpukit/libmisc/shell/hexdump-conv.c
index ae1540f07b..fc579af13d 100644
--- a/cpukit/libmisc/shell/hexdump-conv.c
+++ b/cpukit/libmisc/shell/hexdump-conv.c
@@ -142,7 +142,11 @@ retry:
pad = 3 - width;
if (pad < 0)
pad = 0;
- (void)printf("%*s%lc", pad, "", wc);
+ #if defined(__rtems__)
+ (void)printf("%*s%lc", pad, "", (wint_t)wc);
+ #else
+ (void)printf("%*s%lc", pad, "", wc);
+ #endif
pr->mbleft = clen - 1;
}
} else {