common/memory_commands.c: Format with clang-format
BRANCH=none
TEST=none
#include "util.h"
#include "watchdog.h"
-
enum format {
FMT_WORD,
FMT_HALF,
@@ -106,9 +105,8 @@ static int command_mem_dump(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND_FLAGS
- (md, command_mem_dump,
- "[.b|.h|.s] addr [count]",
+DECLARE_CONSOLE_COMMAND_FLAGS(
+ md, command_mem_dump, "[.b|.h|.s] addr [count]",
"dump memory values, optionally specifying the format",
CMD_FLAG_RESTRICTED);
#endif /* CONFIG_CMD_MD */
@@ -149,12 +147,12 @@ static int command_read_word(int argc, char **argv)
if ((argc - argc_offs) < 3) {
switch (access_size) {
case 1:
- ccprintf("read 0x%pP = 0x%02x\n",
- address, *((uint8_t *)address));
+ ccprintf("read 0x%pP = 0x%02x\n", address,
+ *((uint8_t *)address));
break;
case 2:
- ccprintf("read 0x%pP = 0x%04x\n",
- address, *((uint16_t *)address));
+ ccprintf("read 0x%pP = 0x%04x\n", address,
+ *((uint16_t *)address));
break;
default:
@@ -190,9 +188,8 @@ static int command_read_word(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND_FLAGS
- (rw, command_read_word,
- "[.b|.h] addr [value]",
+DECLARE_CONSOLE_COMMAND_FLAGS(
+ rw, command_read_word, "[.b|.h] addr [value]",
"Read or write a word in memory optionally specifying the size",
CMD_FLAG_RESTRICTED);
#endif /* CONFIG_CMD_RW */
