Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Unified Diff: lib/debugcommands/debugcommands.c

Issue 1348403002: Consistently use the STATIC_COMMAND macro every time we define a console command. (Closed) Base URL: https://github.com/travisg/lk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/cksum/debug.c ('k') | lib/ffs/cmd.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/debugcommands/debugcommands.c
diff --git a/lib/debugcommands/debugcommands.c b/lib/debugcommands/debugcommands.c
index 5c6fd940fb326e9e628fb845a80b48c531385605..6af9dd8df850a2847c1b658b2e49812776630f86 100644
--- a/lib/debugcommands/debugcommands.c
+++ b/lib/debugcommands/debugcommands.c
@@ -50,21 +50,21 @@ static int cmd_chain(int argc, const cmd_args *argv);
STATIC_COMMAND_START
#if LK_DEBUGLEVEL > 0
- { "dw", "display memory in words", &cmd_display_mem },
- { "dh", "display memory in halfwords", &cmd_display_mem },
- { "db", "display memory in bytes", &cmd_display_mem },
- { "mw", "modify word of memory", &cmd_modify_mem },
- { "mh", "modify halfword of memory", &cmd_modify_mem },
- { "mb", "modify byte of memory", &cmd_modify_mem },
- { "fw", "fill range of memory by word", &cmd_fill_mem },
- { "fh", "fill range of memory by halfword", &cmd_fill_mem },
- { "fb", "fill range of memory by byte", &cmd_fill_mem },
- { "mc", "copy a range of memory", &cmd_copy_mem },
+ STATIC_COMMAND("dw", "display memory in words", &cmd_display_mem)
+ STATIC_COMMAND("dh", "display memory in halfwords", &cmd_display_mem)
+ STATIC_COMMAND("db", "display memory in bytes", &cmd_display_mem)
+ STATIC_COMMAND("mw", "modify word of memory", &cmd_modify_mem)
+ STATIC_COMMAND("mh", "modify halfword of memory", &cmd_modify_mem)
+ STATIC_COMMAND("mb", "modify byte of memory", &cmd_modify_mem)
+ STATIC_COMMAND("fw", "fill range of memory by word", &cmd_fill_mem)
+ STATIC_COMMAND("fh", "fill range of memory by halfword", &cmd_fill_mem)
+ STATIC_COMMAND("fb", "fill range of memory by byte", &cmd_fill_mem)
+ STATIC_COMMAND("mc", "copy a range of memory", &cmd_copy_mem)
#endif
#if LK_DEBUGLEVEL > 1
- { "mtest", "simple memory test", &cmd_memtest },
+ STATIC_COMMAND("mtest", "simple memory test", &cmd_memtest)
#endif
- { "chain", "chain load another binary", &cmd_chain },
+ STATIC_COMMAND("chain", "chain load another binary", &cmd_chain)
STATIC_COMMAND_END(mem);
static int cmd_display_mem(int argc, const cmd_args *argv)
« no previous file with comments | « lib/cksum/debug.c ('k') | lib/ffs/cmd.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698