[rtems commit] cpukit/libmisc/shell/hexdump-conv.c: Eliminate printf() format warning
    Joel Sherril 
    joel at rtems.org
       
    Tue Mar 24 13:18:11 UTC 2015
    
    
  
Module:    rtems
Branch:    master
Commit:    5cd910bf3a45642f64421155005d467d96e29f85
Changeset: http://git.rtems.org/rtems/commit/?id=5cd910bf3a45642f64421155005d467d96e29f85
Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Mar 18 10:42:14 2015 -0500
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 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 {
    
    
More information about the vc
mailing list