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

Unified Diff: lib/cksum/debug.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/buildsig/buildsig.c ('k') | lib/debugcommands/debugcommands.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cksum/debug.c
diff --git a/lib/cksum/debug.c b/lib/cksum/debug.c
index c21f4eff2ebf1dce21d9bdacfc5fe3d6265761a2..23a7608dd7ad17a354b37a6af41adb2427ba5534 100644
--- a/lib/cksum/debug.c
+++ b/lib/cksum/debug.c
@@ -39,12 +39,12 @@ static int cmd_cksum_bench(int argc, const cmd_args *argv);
STATIC_COMMAND_START
#if LK_DEBUGLEVEL > 0
- { "crc16", "crc16", &cmd_crc16 },
- { "crc32", "crc32", &cmd_crc32 },
- { "adler32", "adler32", &cmd_adler32 },
+ STATIC_COMMAND("crc16", "crc16", &cmd_crc16)
+ STATIC_COMMAND("crc32", "crc32", &cmd_crc32)
+ STATIC_COMMAND("adler32", "adler32", &cmd_adler32)
#endif
#if LK_DEBUGLEVEL > 1
- { "bench_cksum", "benchmark the checksum routines", &cmd_cksum_bench },
+ STATIC_COMMAND("bench_cksum", "benchmark the checksum routines", &cmd_cksum_bench)
#endif
STATIC_COMMAND_END(crc);
« no previous file with comments | « lib/buildsig/buildsig.c ('k') | lib/debugcommands/debugcommands.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698