summaryrefslogtreecommitdiff
path: root/common/switch.c
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-06-27 14:39:39 -0600
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-06-29 10:12:10 +0000
commit38109128f3c9327a9f0e4ddcf4f1b5523a0967d1 (patch)
treef19ec7006d87f819e1b505bc683b86f3e5813ea8 /common/switch.c
parentd0638550ff342f97b37644e3468f04757c3d1021 (diff)
downloadchrome-ec-38109128f3c9327a9f0e4ddcf4f1b5523a0967d1.tar.gz
common/switch.c: Format with clang-format
BUG=b:236386294 BRANCH=none TEST=none Change-Id: I4a9738b6283499e4c52d11f2cbe9b38f5ea9ea91 Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3729752 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Diffstat (limited to 'common/switch.c')
-rw-r--r--common/switch.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/common/switch.c b/common/switch.c
index 40a5ab217f..8581614d16 100644
--- a/common/switch.c
+++ b/common/switch.c
@@ -19,7 +19,7 @@
/* Console output macros */
#define CPUTS(outstr) cputs(CC_SWITCH, outstr)
-#define CPRINTS(format, args...) cprints(CC_SWITCH, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_SWITCH, format, ##args)
static uint8_t *memmap_switches;
@@ -105,12 +105,8 @@ static int command_mmapinfo(int argc, char **argv)
uint8_t val = *memmap_switches;
int i;
const char *explanation[] = {
- "lid_open",
- "powerbtn",
- "wp_off",
- "kbd_rec",
- "gpio_rec",
- "fake_dev",
+ "lid_open", "powerbtn", "wp_off",
+ "kbd_rec", "gpio_rec", "fake_dev",
};
ccprintf("memmap switches = 0x%x\n", val);
for (i = 0; i < ARRAY_SIZE(explanation); i++)
@@ -119,7 +115,6 @@ static int command_mmapinfo(int argc, char **argv)
return EC_SUCCESS;
}
-DECLARE_CONSOLE_COMMAND(mmapinfo, command_mmapinfo,
- NULL,
+DECLARE_CONSOLE_COMMAND(mmapinfo, command_mmapinfo, NULL,
"Print memmap switch state");
#endif