summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-12-11 05:44:13 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-12-11 05:44:13 +0000
commit07c2fb34936e3aa3f968d0ec87ce67836233473e (patch)
treedf2cad204d684d34ac77f259d291fa64f170d040 /usr.bin
parentc07320c33cb5f73a0711eb66240883a7a07dbea3 (diff)
Make quotactlcmd formatting consistent with others
Fix some indentation in the generated .c file
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/kdump/mksubr12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr
index fe3e709263c..8eb431279b0 100644
--- a/usr.bin/kdump/mksubr
+++ b/usr.bin/kdump/mksubr
@@ -1,5 +1,5 @@
#!/bin/sh
-# $OpenBSD: mksubr,v 1.24 2014/12/08 21:23:44 guenther Exp $
+# $OpenBSD: mksubr,v 1.25 2014/12/11 05:44:12 guenther Exp $
#
# Copyright (c) 2006 David Kirchner <dpk@dpk.net>
#
@@ -452,7 +452,7 @@ _EOF_
if ($i ~ /define/) \
break; \
++i; \
- printf "\tcase %s:\n\t\t(void)printf(\"%s\");\n\t\tbreak;\n", $i, $i }'
+ printf "\t\tcase %s:\n\t\t\t(void)printf(\"%s\");\n\t\t\tbreak;\n", $i, $i }'
cat <<_EOF_
default: /* Should not reach */
(void)printf("<invalid=%d>", arg);
@@ -486,17 +486,17 @@ sockflagsname (int arg)
void
quotactlcmdname(int cmd)
{
- printf("QCMD(");
+ printf("%#x<QCMD(", cmd);
quotactlname(cmd >> SUBCMDSHIFT);
switch (cmd & SUBCMDMASK) {
case USRQUOTA:
- printf(",%s)", "USRQUOTA");
+ printf(",%s)>", "USRQUOTA");
break;
case GRPQUOTA:
- printf(",%s)", "GRPQUOTA");
+ printf(",%s)>", "GRPQUOTA");
break;
default:
- printf(",<invalid>%#x)", cmd & SUBCMDMASK);
+ printf(",<invalid>%#x)>", cmd & SUBCMDMASK);
break;
}
}