From e5c315d1379a7da65a43186721877a1738a88b38 Mon Sep 17 00:00:00 2001 From: ntfreak Date: Tue, 24 Jun 2008 09:26:30 +0000 Subject: - 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 --- src/target/arm7tdmi.c | 2 +- src/target/arm926ejs.c | 2 +- src/target/arm9tdmi.c | 2 +- 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 #include -#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 { -- cgit v1.2.3-18-g5258