diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 13:53:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-30 13:53:02 +0000 |
commit | 352332193c1146a2e82a891d7b72136acc1bee5d (patch) | |
tree | b8bd9bbddc95b9657811b3790225edeb7d3eff8e /cpukit/libmisc/monitor/mon-symbols.c | |
parent | 2006-08-30 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-352332193c1146a2e82a891d7b72136acc1bee5d.tar.bz2 |
2006-08-30 Joel Sherrill <joel@OARcorp.com>
* libmisc/cpuuse/cpuuse.c, libmisc/monitor/mon-command.c,
libmisc/monitor/mon-driver.c, libmisc/monitor/mon-symbols.c,
libmisc/rtmonuse/rtmonuse.c, libmisc/stackchk/check.c,
libnetworking/libc/res_debug.c, telnetd/telnetd.c: Remove printf
format warnings.
Diffstat (limited to 'cpukit/libmisc/monitor/mon-symbols.c')
-rw-r--r-- | cpukit/libmisc/monitor/mon-symbols.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpukit/libmisc/monitor/mon-symbols.c b/cpukit/libmisc/monitor/mon-symbols.c index ac98523704..7ecae3b0e1 100644 --- a/cpukit/libmisc/monitor/mon-symbols.c +++ b/cpukit/libmisc/monitor/mon-symbols.c @@ -21,6 +21,7 @@ #include <rtems.h> #include <stdio.h> #include <stdlib.h> +#include <inttypes.h> #include <rtems/monitor.h> #include "symbols.h" @@ -400,15 +401,16 @@ rtems_monitor_symbol_dump( (int) sizeof(canonical_symbol->name), canonical_symbol->name); else - length += fprintf(stdout,"<%.*s+0x%x>", + length += fprintf(stdout,"<%.*s+0x%" PRIx32 ">", (int) sizeof(canonical_symbol->name), canonical_symbol->name, canonical_symbol->offset); if (verbose) - length += fprintf(stdout," [0x%x]", canonical_symbol->value); + length += fprintf(stdout, + " [0x%" PRIx32 "]", canonical_symbol->value); } else - length += fprintf(stdout,"[0x%x]", canonical_symbol->value); + length += fprintf(stdout,"[0x%" PRIx32 "]", canonical_symbol->value); return length; } |