From 6128c515db373bdb583fd4b28162de7f84041865 Mon Sep 17 00:00:00 2001 From: oharboe Date: Mon, 6 Jul 2009 14:58:13 +0000 Subject: [PATCH] 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 --- src/target/armv4_5.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.5