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/flash/flash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/flash') diff --git a/src/flash/flash.c b/src/flash/flash.c index da43e1a8..f3f0086a 100644 --- a/src/flash/flash.c +++ b/src/flash/flash.c @@ -728,7 +728,7 @@ COMMAND_HANDLER(handle_flash_fill_command) if (count == 0) return ERROR_OK; - switch (cmd[4]) + switch (CMD_NAME[4]) { case 'w': wordsize = 4; -- cgit v1.2.3