]> git.sur5r.net Git - openocd/commitdiff
more debug output for translation of arm mode number to enum
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 6 Jul 2009 15:04:20 +0000 (15:04 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 6 Jul 2009 15:04:20 +0000 (15:04 +0000)
git-svn-id: svn://svn.berlios.de/openocd/trunk@2481 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/armv4_5.h

index fd6c08c8fcc825ac9cafbf4b343377245ca3a6b1..aed3a48de318fbba8aea8826a9c726e111e40dc0 100644 (file)
@@ -132,7 +132,7 @@ static __inline enum armv4_5_mode armv4_5_number_to_mode(int number)
                case 5: return ARMV4_5_MODE_UND; break;
                case 6: return ARMV4_5_MODE_SYS; break;
                default:
-                       LOG_ERROR("mode index out of bounds");
+                       LOG_ERROR("mode index out of bounds %d", number);
                        return ARMV4_5_MODE_ANY;
        }
 };