[PATCH 02/42] cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning
Joel Sherrill
joel.sherrill at oarcorp.com
Mon Mar 23 14:39:00 UTC 2015
---
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 ae1540f..fc579af 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 {
--
1.9.3
More information about the devel
mailing list