summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/calypso/dsp.c
diff options
context:
space:
mode:
authorSylvain Munaut2010-02-21 18:29:46 +0100
committerHarald Welte2010-02-23 15:02:49 +0100
commiteb5248fffece98a1002b24d9565c3c7dcd8909cb (patch)
tree7b57e71cee5768bd69f3a2a549e80ec3cb492a34 /src/target/firmware/calypso/dsp.c
parentcomm/msgb.c: Style cleanup in initialization (diff)
downloadosmocom-eb5248fffece98a1002b24d9565c3c7dcd8909cb.tar.gz
osmocom-eb5248fffece98a1002b24d9565c3c7dcd8909cb.tar.xz
osmocom-eb5248fffece98a1002b24d9565c3c7dcd8909cb.zip
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/firmware/calypso/dsp.c')
-rw-r--r--src/target/firmware/calypso/dsp.c4
1 files changed, 2 insertions, 2 deletions
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);
}