summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-24 09:26:30 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-06-24 09:26:30 +0000
commite5c315d1379a7da65a43186721877a1738a88b38 (patch)
tree74f86c120794ce446bd82d844ff55fe71bec2522 /src
parent77fd8150ce8dd0f86515647c10d81f5932cb9cdc (diff)
downloadopenocd+libswd-e5c315d1379a7da65a43186721877a1738a88b38.tar.gz
openocd+libswd-e5c315d1379a7da65a43186721877a1738a88b38.tar.bz2
openocd+libswd-e5c315d1379a7da65a43186721877a1738a88b38.tar.xz
openocd+libswd-e5c315d1379a7da65a43186721877a1738a88b38.zip
- fix compile errors when _DEBUG_INSTRUCTION_EXECUTION_ is defined
- Thanks Simon Qian git-svn-id: svn://svn.berlios.de/openocd/trunk@725 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/arm7tdmi.c2
-rw-r--r--src/target/arm926ejs.c2
-rw-r--r--src/target/arm9tdmi.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm7tdmi.c b/src/target/arm7tdmi.c
index 16d1b136..ff398887 100644
--- a/src/target/arm7tdmi.c
+++ b/src/target/arm7tdmi.c
@@ -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
{
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index ffa2b0d6..386d4471 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -28,7 +28,7 @@
#include <stdlib.h>
#include <string.h>
-#if 1
+#if 0
#define _DEBUG_INSTRUCTION_EXECUTION_
#endif
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c
index 90fb45aa..a4d18dd5 100644
--- a/src/target/arm9tdmi.c
+++ b/src/target/arm9tdmi.c
@@ -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
{