From: oharboe Date: Mon, 6 Jul 2009 14:58:13 +0000 (+0000) Subject: a bit more debug output for translation of invalid mode numbers X-Git-Tag: v0.2.0~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6128c515db373bdb583fd4b28162de7f84041865;p=openocd a bit more debug output for translation of invalid mode numbers git-svn-id: svn://svn.berlios.de/openocd/trunk@2480 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- diff --git a/src/target/armv4_5.h b/src/target/armv4_5.h index 8e9710a8..fd6c08c8 100644 --- a/src/target/armv4_5.h +++ b/src/target/armv4_5.h @@ -114,7 +114,7 @@ static __inline int armv4_5_mode_to_number(enum armv4_5_mode mode) case ARMV4_5_MODE_SYS: return 6; break; case ARMV4_5_MODE_ANY: return 0; break; /* map MODE_ANY to user mode */ default: - LOG_ERROR("invalid mode value encountered"); + LOG_ERROR("invalid mode value encountered %d", mode); return -1; } }