summaryrefslogtreecommitdiff
path: root/src/target/arm11.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/arm11.h')
-rw-r--r--src/target/arm11.h25
1 files changed, 9 insertions, 16 deletions
diff --git a/src/target/arm11.h b/src/target/arm11.h
index 0b379294..3d7841d5 100644
--- a/src/target/arm11.h
+++ b/src/target/arm11.h
@@ -25,27 +25,20 @@
#include "armv4_5.h"
-#define NEW(type, variable, items) \
- type * variable = calloc(1, sizeof(type) * items)
-
/* TEMPORARY -- till we switch to the shared infrastructure */
#define ARM11_REGCACHE_COUNT 20
#define ARM11_TAP_DEFAULT TAP_INVALID
-
-#define CHECK_RETVAL(action) \
-do { \
- int __retval = (action); \
- \
- if (__retval != ERROR_OK) \
- { \
- LOG_DEBUG("error while calling \"" # action "\""); \
- return __retval; \
- } \
- \
-} while (0)
-
+#define CHECK_RETVAL(action) \
+ do { \
+ int __retval = (action); \
+ if (__retval != ERROR_OK) { \
+ LOG_DEBUG("error while calling \"%s\"", \
+ # action ); \
+ return __retval; \
+ } \
+ } while (0)
struct arm11_register_history
{