diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2010-02-21 18:29:46 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-02-23 15:02:49 +0100 |
commit | eb5248fffece98a1002b24d9565c3c7dcd8909cb (patch) | |
tree | 7b57e71cee5768bd69f3a2a549e80ec3cb492a34 /src/target | |
parent | 16aeb95d000e8c86e00cb13a9b88a3b1be7792f2 (diff) |
calypso/dsp: Fix printf format string in dump
In commit 9a18ba40d940c9bf173504b941e10f9638032823 (old git), this
was changed to 'fix compiler warnings'.
But %ux is not a valid format specifier at all so that produces
wrong output !
%lx is the correct format AFAICT because uint32_t is typedef'd from
unsigned long in my toolchain (ARM GCC 4.3.3 - newlib 1.17.0). This
doesn't produce any warning here.
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/firmware/calypso/dsp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 59176567..4091e9b9 100644 --- a/src/target/firmware/calypso/dsp.c +++ b/src/target/firmware/calypso/dsp.c @@ -333,7 +333,7 @@ static void _dsp_dump_range(uint32_t addr, uint32_t size, int mode) while (bs--) { if ((addr&15)==0) - printf("%05ux : ", addr); + printf("%05lx : ", addr); printf("%04hx%c", *api++, ((addr&15)==15)?'\n':' '); addr++; } @@ -383,7 +383,7 @@ void dsp_dump(void) /* Dump each range */ for (i=0; dr[i].name; i++) { - printf("DSP dump: %s [%05ux-%05ux]\n", dr[i].name, + printf("DSP dump: %s [%05lx-%05lx]\n", dr[i].name, dr[i].addr, dr[i].addr+dr[i].size-1); _dsp_dump_range(dr[i].addr, dr[i].size, dr[i].mode); } |