From 5cd910bf3a45642f64421155005d467d96e29f85 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 18 Mar 2015 10:42:14 -0500 Subject: cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning --- cpukit/libmisc/shell/hexdump-conv.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3