summaryrefslogtreecommitdiff
path: root/src/target/cortex_m3.c
diff options
context:
space:
mode:
authorSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-20 23:09:20 +0000
committerSpencer Oliver <ntfreak@users.sourceforge.net>2010-01-20 23:11:25 +0000
commitdbecb13b240867e12e43dba032a45891000bffe9 (patch)
treeab711ecf845a13767982f26f8247e3db03470e84 /src/target/cortex_m3.c
parent2a0c9b08d7ee0c1b0eb5b593d18f68d0c910927d (diff)
downloadopenocd+libswd-dbecb13b240867e12e43dba032a45891000bffe9.tar.gz
openocd+libswd-dbecb13b240867e12e43dba032a45891000bffe9.tar.bz2
openocd+libswd-dbecb13b240867e12e43dba032a45891000bffe9.tar.xz
openocd+libswd-dbecb13b240867e12e43dba032a45891000bffe9.zip
BUILD: remove cygwin gcc 3.4.4 build warnings
Signed-off-by: Spencer Oliver <ntfreak@users.sourceforge.net>
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r--src/target/cortex_m3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c
index 762e3184..adce4d9c 100644
--- a/src/target/cortex_m3.c
+++ b/src/target/cortex_m3.c
@@ -1675,8 +1675,8 @@ static int cortex_m3_examine(struct target *target)
return retval;
if (((cpuid >> 4) & 0xc3f) == 0xc23)
- LOG_DEBUG("Cortex-M3 r%dp%d processor detected",
- (cpuid >> 20) & 0xf, (cpuid >> 0) & 0xf);
+ LOG_DEBUG("Cortex-M3 r%" PRId8 "p%" PRId8 " processor detected",
+ (uint8_t)((cpuid >> 20) & 0xf), (uint8_t)((cpuid >> 0) & 0xf));
LOG_DEBUG("cpuid: 0x%8.8" PRIx32 "", cpuid);
/* NOTE: FPB and DWT are both optional. */