diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-10 22:29:36 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-13 10:55:00 -0800 |
commit | a585bdf7269ce5c861c83ee3294ba1f074e9c877 (patch) | |
tree | 0b50307192186d4516609e9043be1be1dd3ebc2d /src/target/cortex_m3.c | |
parent | 5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87 (diff) |
add CMD_NAME macro for command handlers
By introducing the CMD_NAME macro, this parameter may be integrated
as args[-1] in command.[ch], without touching any other call sites.
Diffstat (limited to 'src/target/cortex_m3.c')
-rw-r--r-- | src/target/cortex_m3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/cortex_m3.c b/src/target/cortex_m3.c index 50842319..86469c4e 100644 --- a/src/target/cortex_m3.c +++ b/src/target/cortex_m3.c @@ -1902,7 +1902,7 @@ COMMAND_HANDLER(handle_cortex_m3_mask_interrupts_command) if (target->state != TARGET_HALTED) { - command_print(cmd_ctx, "target must be stopped for \"%s\" command", cmd); + command_print(cmd_ctx, "target must be stopped for \"%s\" command", CMD_NAME); return ERROR_OK; } |