Module Name: src Committed By: joerg Date: Thu Aug 25 16:17:58 UTC 2011
Modified Files: src/sbin/newfs: mkfs.c Log Message: Avoid magic manipulation of the format string. To generate a diff of this commit: cvs rdiff -u -r1.109 -r1.110 src/sbin/newfs/mkfs.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/newfs/mkfs.c diff -u src/sbin/newfs/mkfs.c:1.109 src/sbin/newfs/mkfs.c:1.110 --- src/sbin/newfs/mkfs.c:1.109 Sun Mar 6 17:08:16 2011 +++ src/sbin/newfs/mkfs.c Thu Aug 25 16:17:58 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: mkfs.c,v 1.109 2011/03/06 17:08:16 bouyer Exp $ */ +/* $NetBSD: mkfs.c,v 1.110 2011/08/25 16:17:58 joerg Exp $ */ /* * Copyright (c) 1980, 1989, 1993 @@ -73,7 +73,7 @@ #if 0 static char sccsid[] = "@(#)mkfs.c 8.11 (Berkeley) 5/3/95"; #else -__RCSID("$NetBSD: mkfs.c,v 1.109 2011/03/06 17:08:16 bouyer Exp $"); +__RCSID("$NetBSD: mkfs.c,v 1.110 2011/08/25 16:17:58 joerg Exp $"); #endif #endif /* not lint */ @@ -677,7 +677,7 @@ continue; } /* Print superblock numbers */ - len = printf(" %*" PRIu64 "," + !col, fld_width, + len = printf("%s%*" PRIu64 ",", col ? " " : "", fld_width, (uint64_t)fsbtodb(&sblock, cgsblock(&sblock, cylno))); col += len; if (col + len < max_cols)