From: ntfreak Date: Tue, 24 Jun 2008 09:26:30 +0000 (+0000) Subject: - fix compile errors when _DEBUG_INSTRUCTION_EXECUTION_ is defined X-Git-Tag: v0.1.0~571 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5c315d1379a7da65a43186721877a1738a88b38;p=openocd - 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 --- 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 {