summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 {