Module Name: src Committed By: uebayasi Date: Fri Oct 31 18:26:06 UTC 2014
Modified Files: src/usr.bin/config: mkioconf.c Log Message: config(1): Better indent of cfdata in ioconf.c To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/usr.bin/config/mkioconf.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/config/mkioconf.c diff -u src/usr.bin/config/mkioconf.c:1.24 src/usr.bin/config/mkioconf.c:1.25 --- src/usr.bin/config/mkioconf.c:1.24 Fri Oct 31 17:58:02 2014 +++ src/usr.bin/config/mkioconf.c Fri Oct 31 18:26:06 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: mkioconf.c,v 1.24 2014/10/31 17:58:02 uebayasi Exp $ */ +/* $NetBSD: mkioconf.c,v 1.25 2014/10/31 18:26:06 uebayasi Exp $ */ /* * Copyright (c) 1992, 1993 @@ -45,7 +45,7 @@ #endif #include <sys/cdefs.h> -__RCSID("$NetBSD: mkioconf.c,v 1.24 2014/10/31 17:58:02 uebayasi Exp $"); +__RCSID("$NetBSD: mkioconf.c,v 1.25 2014/10/31 18:26:06 uebayasi Exp $"); #include <sys/param.h> #include <err.h> @@ -380,7 +380,7 @@ emitcfdata(FILE *fp) "\n" "%sstruct cfdata cfdata%s%s[] = {\n" " /* driver attachment unit state " - "loc flags pspec */\n", + " loc flags pspec */\n", ioconfname ? "static " : "", ioconfname ? "_ioconf_" : "", ioconfname ? ioconfname : ""); @@ -435,7 +435,7 @@ emitcfdata(FILE *fp) } else loc = "loc"; fprintf(fp, " { \"%s\",%s\"%s\",%s%2d, %s, %7s, %#6x, ", - basename, strlen(basename) < 8 ? "\t\t" + basename, strlen(basename) < 7 ? "\t\t" : "\t", attachment, strlen(attachment) < 5 ? "\t\t" : "\t", @@ -446,7 +446,7 @@ emitcfdata(FILE *fp) fputs("NULL },\n", fp); } fprintf(fp, " { %s,%s%s,%s%2d, %s, %7s, %#6x, %s }\n};\n", - "NULL", "\t\t", "NULL", "\t\t", 0, "0", "NULL", 0, "NULL"); + "NULL", "\t\t", "NULL", "\t\t", 0, " 0", "NULL", 0, "NULL"); } /*