summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-03-20 13:53:23 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-03-20 13:53:23 +0000
commit3354531614340b9a6b32cbf1b1d9b29a7c0b6513 (patch)
treed37754dba1cbd191911c43af23084d22fd0360ea /firmware/target/coldfire
parente693bc0f5de6c672246f9987e2cfc2615851fabd (diff)
downloadrockbox-3354531614340b9a6b32cbf1b1d9b29a7c0b6513.tar.gz
rockbox-3354531614340b9a6b32cbf1b1d9b29a7c0b6513.zip
More logf fixes. speex.c wants to format 64bit args so I didn't change that one nor add any formatting for that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12858 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire')
-rw-r--r--firmware/target/coldfire/i2c-coldfire.c8
-rw-r--r--firmware/target/coldfire/iaudio/x5/m5636-x5.c11
2 files changed, 10 insertions, 9 deletions
diff --git a/firmware/target/coldfire/i2c-coldfire.c b/firmware/target/coldfire/i2c-coldfire.c
index b4e7968d1a..d743d046a7 100644
--- a/firmware/target/coldfire/i2c-coldfire.c
+++ b/firmware/target/coldfire/i2c-coldfire.c
@@ -169,7 +169,7 @@ int i2c_start(volatile unsigned char *iface)
169 ; 169 ;
170 if (!j) 170 if (!j)
171 { 171 {
172 logf("i2c: bus is busy (iface=%08x)", iface); 172 logf("i2c: bus is busy (iface=%08lX)", (uintptr_t)iface);
173 return -1; 173 return -1;
174 } 174 }
175 175
@@ -190,7 +190,7 @@ int i2c_wait_for_slave(volatile unsigned char *iface)
190 ; 190 ;
191 if (!j) 191 if (!j)
192 { 192 {
193 logf("i2c: IFF not set (iface=%08x)", iface); 193 logf("i2c: IFF not set (iface=%08lX)", (uintptr_t)iface);
194 i2c_stop(iface); 194 i2c_stop(iface);
195 return -2; 195 return -2;
196 } 196 }
@@ -218,7 +218,7 @@ int i2c_outb(volatile unsigned char *iface, unsigned char byte)
218 /* Check that transfer is complete */ 218 /* Check that transfer is complete */
219 if ( !(iface[O_MBSR] & ICF)) 219 if ( !(iface[O_MBSR] & ICF))
220 { 220 {
221 logf("i2c: transfer error (iface=%08x)", iface); 221 logf("i2c: transfer error (iface=%08lX)", (uintptr_t)iface);
222 i2c_stop(iface); 222 i2c_stop(iface);
223 return -3; 223 return -3;
224 } 224 }
@@ -226,7 +226,7 @@ int i2c_outb(volatile unsigned char *iface, unsigned char byte)
226 /* Check that the byte has been ACKed */ 226 /* Check that the byte has been ACKed */
227 if (iface[O_MBSR] & RXAK) 227 if (iface[O_MBSR] & RXAK)
228 { 228 {
229 logf("i2c: no ACK (iface=%08x)", iface); 229 logf("i2c: no ACK (iface=%08lX)", (uintptr_t)iface);
230 i2c_stop(iface); 230 i2c_stop(iface);
231 return -4; 231 return -4;
232 } 232 }
diff --git a/firmware/target/coldfire/iaudio/x5/m5636-x5.c b/firmware/target/coldfire/iaudio/x5/m5636-x5.c
index d30ff360d6..02f48cf53d 100644
--- a/firmware/target/coldfire/iaudio/x5/m5636-x5.c
+++ b/firmware/target/coldfire/iaudio/x5/m5636-x5.c
@@ -40,11 +40,12 @@ void m5636_dump_regs(void)
40 address < (unsigned short *)(M5636_BASE + 0x100); 40 address < (unsigned short *)(M5636_BASE + 0x100);
41 address++) 41 address++)
42 { 42 {
43 logf("m5636 A:%08x D:%04x", address, (unsigned)*address); 43 logf("m5636 A:%08lX D:%04lX", (uintptr_t)address,
44 (uintptr_t)*address);
44 } 45 }
45 46
46 logf("GPIO_INT_EN %08x", GPIO_INT_EN); 47 logf("GPIO_INT_EN %08lX", GPIO_INT_EN);
47 logf("GPIO1_OUT %08x", GPIO1_OUT); 48 logf("GPIO1_OUT %08lX", GPIO1_OUT);
48 logf("GPIO1_ENABLE %08x", GPIO1_ENABLE); 49 logf("GPIO1_ENABLE %08lX", GPIO1_ENABLE);
49 logf("GPIO1_FUNCTION %08x", GPIO1_FUNCTION); 50 logf("GPIO1_FUNCTION %08lX", GPIO1_FUNCTION);
50} 51}