OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 Google, Inc. | 2 * Copyright (c) 2013 Google, Inc. |
3 * | 3 * |
4 * Permission is hereby granted, free of charge, to any person obtaining | 4 * Permission is hereby granted, free of charge, to any person obtaining |
5 * a copy of this software and associated documentation files | 5 * a copy of this software and associated documentation files |
6 * (the "Software"), to deal in the Software without restriction, | 6 * (the "Software"), to deal in the Software without restriction, |
7 * including without limitation the rights to use, copy, modify, merge, | 7 * including without limitation the rights to use, copy, modify, merge, |
8 * publish, distribute, sublicense, and/or sell copies of the Software, | 8 * publish, distribute, sublicense, and/or sell copies of the Software, |
9 * and to permit persons to whom the Software is furnished to do so, | 9 * and to permit persons to whom the Software is furnished to do so, |
10 * subject to the following conditions: | 10 * subject to the following conditions: |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 #include <debug.h> | 59 #include <debug.h> |
60 #include <lib/console.h> | 60 #include <lib/console.h> |
61 | 61 |
62 static int cmd_version(int argc, const cmd_args *argv) | 62 static int cmd_version(int argc, const cmd_args *argv) |
63 { | 63 { |
64 print_version(); | 64 print_version(); |
65 return 0; | 65 return 0; |
66 } | 66 } |
67 | 67 |
68 STATIC_COMMAND_START | 68 STATIC_COMMAND_START |
69 { "version", "print version", &cmd_version }, | 69 STATIC_COMMAND("version", "print version", &cmd_version) |
70 STATIC_COMMAND_END(version); | 70 STATIC_COMMAND_END(version); |
71 | 71 |
72 #endif // WITH_LIB_CONSOLE | 72 #endif // WITH_LIB_CONSOLE |
73 | 73 |
OLD | NEW |