From a585bdf7269ce5c861c83ee3294ba1f074e9c877 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Tue, 10 Nov 2009 22:29:36 -0800 Subject: 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. --- src/target/arm926ejs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/arm926ejs.c') diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c index 6f347d87..77405a87 100644 --- a/src/target/arm926ejs.c +++ b/src/target/arm926ejs.c @@ -740,7 +740,7 @@ COMMAND_HANDLER(arm926ejs_handle_cp15_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; } -- cgit v1.2.3