]> git.sur5r.net Git - openocd/commitdiff
- fix compile errors when _DEBUG_INSTRUCTION_EXECUTION_ is defined
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 24 Jun 2008 09:26:30 +0000 (09:26 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Tue, 24 Jun 2008 09:26:30 +0000 (09:26 +0000)
- Thanks Simon Qian

git-svn-id: svn://svn.berlios.de/openocd/trunk@725 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/arm7tdmi.c
src/target/arm926ejs.c
src/target/arm9tdmi.c

index 16d1b136d09f4ef86fa57c3ff4c59cdee3e882ec..ff398887d640a418e895d3c51bf3b2a1f739a49d 100644 (file)
@@ -279,7 +279,7 @@ int arm7tdmi_clock_data_in_endianness(arm_jtag_t *jtag_info, void *in, int size,
                        
                if (in)
                {
-                       LOG_DEBUG("in: 0x%8.8x", *in);
+                       LOG_DEBUG("in: 0x%8.8x", *(u32*)in);
                }
                else
                {
index ffa2b0d62f6554c457634be8cb9d508f65ecd8e0..386d4471a90df203c87e6335bc6e4057a7086fd4 100644 (file)
@@ -28,7 +28,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#if 1
+#if 0
 #define _DEBUG_INSTRUCTION_EXECUTION_
 #endif
 
index 90fb45aa631963d442112eb677b9c800c8325852..a4d18dd57b58d7ddbe1ec31474a789dfad6050ba 100644 (file)
@@ -381,7 +381,7 @@ int arm9tdmi_clock_data_in_endianness(arm_jtag_t *jtag_info, void *in, int size,
                        
                if (in)
                {
-                       LOG_DEBUG("in: 0x%8.8x", *in);
+                       LOG_DEBUG("in: 0x%8.8x", *(u32*)in);
                }
                else
                {