OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Google, Inc. All rights reserved | 2 * Copyright (c) 2013, Google, Inc. All rights reserved |
3 * Copyright (c) 2014, Travis Geiselbrecht | 3 * Copyright (c) 2014, Travis Geiselbrecht |
4 * | 4 * |
5 * Permission is hereby granted, free of charge, to any person obtaining | 5 * Permission is hereby granted, free of charge, to any person obtaining |
6 * a copy of this software and associated documentation files | 6 * a copy of this software and associated documentation files |
7 * (the "Software"), to deal in the Software without restriction, | 7 * (the "Software"), to deal in the Software without restriction, |
8 * including without limitation the rights to use, copy, modify, merge, | 8 * including without limitation the rights to use, copy, modify, merge, |
9 * publish, distribute, sublicense, and/or sell copies of the Software, | 9 * publish, distribute, sublicense, and/or sell copies of the Software, |
10 * and to permit persons to whom the Software is furnished to do so, | 10 * and to permit persons to whom the Software is furnished to do so, |
(...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 } else if (!strcmp(argv[1].str, "write")) { | 920 } else if (!strcmp(argv[1].str, "write")) { |
921 printf("ptable_write result %d\n", ptable_write()); | 921 printf("ptable_write result %d\n", ptable_write()); |
922 } else { | 922 } else { |
923 goto usage; | 923 goto usage; |
924 } | 924 } |
925 | 925 |
926 return 0; | 926 return 0; |
927 } | 927 } |
928 | 928 |
929 STATIC_COMMAND_START | 929 STATIC_COMMAND_START |
930 { "ptable", "commands for manipulating the flash partition table", &cmd_ptable }
, | 930 STATIC_COMMAND("ptable", "commands for manipulating the flash partition table",
&cmd_ptable) |
931 STATIC_COMMAND_END(ptable); | 931 STATIC_COMMAND_END(ptable); |
932 | 932 |
933 #endif // WITH_LIB_CONSOLE | 933 #endif // WITH_LIB_CONSOLE |
934 | 934 |
OLD | NEW |