From 07c2fb34936e3aa3f968d0ec87ce67836233473e Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Thu, 11 Dec 2014 05:44:13 +0000 Subject: Make quotactlcmd formatting consistent with others Fix some indentation in the generated .c file --- usr.bin/kdump/mksubr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'usr.bin') 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 # @@ -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("", arg); @@ -486,17 +486,17 @@ sockflagsname (int arg) void quotactlcmdname(int cmd) { - printf("QCMD("); + printf("%#x> SUBCMDSHIFT); switch (cmd & SUBCMDMASK) { case USRQUOTA: - printf(",%s)", "USRQUOTA"); + printf(",%s)>", "USRQUOTA"); break; case GRPQUOTA: - printf(",%s)", "GRPQUOTA"); + printf(",%s)>", "GRPQUOTA"); break; default: - printf(",%#x)", cmd & SUBCMDMASK); + printf(",%#x)>", cmd & SUBCMDMASK); break; } } -- cgit v1.2.3