diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-01 15:37:21 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-01 15:48:42 +0200 |
commit | 798931160ee2b1ceadd4202abf881157bbaadead (patch) | |
tree | 6a9051bcc6590d12dedc006b400575c79b6bcdf4 /src/libsystemd/sd-journal | |
parent | test: add space between arguments (diff) | |
download | systemd-798931160ee2b1ceadd4202abf881157bbaadead.tar.xz systemd-798931160ee2b1ceadd4202abf881157bbaadead.zip |
tree-wide: add a space after if, switch, for, and while
Diffstat (limited to 'src/libsystemd/sd-journal')
-rw-r--r-- | src/libsystemd/sd-journal/audit_type-to-name.awk | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsystemd/sd-journal/audit_type-to-name.awk b/src/libsystemd/sd-journal/audit_type-to-name.awk index 1657866a6a..a859c44d45 100644 --- a/src/libsystemd/sd-journal/audit_type-to-name.awk +++ b/src/libsystemd/sd-journal/audit_type-to-name.awk @@ -1,11 +1,14 @@ # SPDX-License-Identifier: LGPL-2.1-or-later BEGIN{ - print "const char *audit_type_to_string(int type) {\n\tswitch(type) {" + print "const char *audit_type_to_string(int type) {" + print " switch (type) {" } { printf " case AUDIT_%s: return \"%s\";\n", $1, $1 } END{ - print " default: return NULL;\n\t}\n}\n" + print " default: return NULL;" + print " }" + print "}" } |