summaryrefslogtreecommitdiff
path: root/src/flash
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-10 22:29:36 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-13 10:55:00 -0800
commita585bdf7269ce5c861c83ee3294ba1f074e9c877 (patch)
tree0b50307192186d4516609e9043be1be1dd3ebc2d /src/flash
parent5b6df55a1e5e4c0f531bc336691bc7c9a6a0df87 (diff)
downloadopenocd_libswd-a585bdf7269ce5c861c83ee3294ba1f074e9c877.tar.gz
openocd_libswd-a585bdf7269ce5c861c83ee3294ba1f074e9c877.tar.bz2
openocd_libswd-a585bdf7269ce5c861c83ee3294ba1f074e9c877.tar.xz
openocd_libswd-a585bdf7269ce5c861c83ee3294ba1f074e9c877.zip
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/flash')
-rw-r--r--src/flash/flash.c2
1 files changed, 1 insertions, 1 deletions
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;