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

Side by Side Diff: lib/ffs/cmd.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 unified diff | Download patch
« no previous file with comments | « lib/debugcommands/debugcommands.c ('k') | lib/klog/klog.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <stdio.h> 1 #include <stdio.h>
2 #include <string.h> 2 #include <string.h>
3 3
4 #include "ff.h" 4 #include "ff.h"
5 #include <ffs.h> 5 #include <ffs.h>
6 6
7 #if defined(WITH_LIB_CONSOLE) 7 #if defined(WITH_LIB_CONSOLE)
8 #include <lib/console.h> 8 #include <lib/console.h>
9 9
10 static int ffs_cmd(int argc, const cmd_args *argv) 10 static int ffs_cmd(int argc, const cmd_args *argv)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 if (res != FR_OK) 100 if (res != FR_OK)
101 printf("Error: %d\n", res); 101 printf("Error: %d\n", res);
102 } 102 }
103 103
104 out: 104 out:
105 return 0; 105 return 0;
106 } 106 }
107 107
108 STATIC_COMMAND_START 108 STATIC_COMMAND_START
109 { "ffs", "ffs toolbox", &ffs_cmd }, 109 STATIC_COMMAND("ffs", "ffs toolbox", &ffs_cmd)
110 STATIC_COMMAND_END(ffscommands); 110 STATIC_COMMAND_END(ffscommands);
111 111
112 112
113 #endif 113 #endif
114 114
OLDNEW
« no previous file with comments | « lib/debugcommands/debugcommands.c ('k') | lib/klog/klog.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698