Skip to content

Commit 75065d7

Browse files
committed
style: fix clang-format alignment in error_codes table
Signed-off-by: Vincent Jardin <vjardin@free.fr>
1 parent e3008c6 commit 75065d7

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/rapacker.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,21 @@ static const struct {
1616
const char *name;
1717
const char *desc;
1818
} error_codes[] = {
19-
{ ERR_UNSU, "ERR_UNSU", "unsupported command" },
20-
{ ERR_NSCM, "ERR_NSCM", "unrecognized command" },
19+
{ ERR_UNSU, "ERR_UNSU", "unsupported command" },
20+
{ ERR_NSCM, "ERR_NSCM", "unrecognized command" },
2121
{ ERR_PCKT, "ERR_PCKT", "packet error (command recognized, need data)" },
22-
{ ERR_CHKS, "ERR_CHKS", "checksum mismatch" },
23-
{ ERR_FLOW, "ERR_FLOW", "command flow error" },
24-
{ ERR_ADDR, "ERR_ADDR", "invalid address" },
25-
{ ERR_BAUD, "ERR_BAUD", "baud rate margin error" },
26-
{ ERR_CMD, "ERR_CMD", "command not accepted (wrong state)" },
27-
{ ERR_PROT, "ERR_PROT", "protection error" },
28-
{ ERR_ID, "ERR_ID", "ID authentication mismatch" },
29-
{ ERR_SERI, "ERR_SERI", "serial programming disabled" },
30-
{ ERR_ERA, "ERR_ERA", "erase failed" },
31-
{ ERR_WRI, "ERR_WRI", "write failed" },
32-
{ ERR_SEQ, "ERR_SEQ", "sequencer error" },
33-
{ 0, NULL, NULL }
22+
{ ERR_CHKS, "ERR_CHKS", "checksum mismatch" },
23+
{ ERR_FLOW, "ERR_FLOW", "command flow error" },
24+
{ ERR_ADDR, "ERR_ADDR", "invalid address" },
25+
{ ERR_BAUD, "ERR_BAUD", "baud rate margin error" },
26+
{ ERR_CMD, "ERR_CMD", "command not accepted (wrong state)" },
27+
{ ERR_PROT, "ERR_PROT", "protection error" },
28+
{ ERR_ID, "ERR_ID", "ID authentication mismatch" },
29+
{ ERR_SERI, "ERR_SERI", "serial programming disabled" },
30+
{ ERR_ERA, "ERR_ERA", "erase failed" },
31+
{ ERR_WRI, "ERR_WRI", "write failed" },
32+
{ ERR_SEQ, "ERR_SEQ", "sequencer error" },
33+
{ 0, NULL, NULL }
3434
};
3535

3636
const char *

0 commit comments

Comments
 (0)