From eb5248fffece98a1002b24d9565c3c7dcd8909cb Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Sun, 21 Feb 2010 18:29:46 +0100 Subject: 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 --- src/target/firmware/calypso/dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/target/firmware/calypso/dsp.c') diff --git a/src/target/firmware/calypso/dsp.c b/src/target/firmware/calypso/dsp.c index 5917656..4091e9b 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); } -- cgit v1.2.3-55-g7522