Module Name:    src
Committed By:   pooka
Date:           Sat Mar 28 15:17:16 UTC 2009

Modified Files:
        src/sbin/newfs_msdos: newfs_msdos.c

Log Message:
remove troublesome printf specifier


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sbin/newfs_msdos/newfs_msdos.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_msdos/newfs_msdos.c
diff -u src/sbin/newfs_msdos/newfs_msdos.c:1.31 src/sbin/newfs_msdos/newfs_msdos.c:1.32
--- src/sbin/newfs_msdos/newfs_msdos.c:1.31	Thu Mar 26 08:39:24 2009
+++ src/sbin/newfs_msdos/newfs_msdos.c	Sat Mar 28 15:17:16 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: newfs_msdos.c,v 1.31 2009/03/26 08:39:24 pooka Exp $	*/
+/*	$NetBSD: newfs_msdos.c,v 1.32 2009/03/28 15:17:16 pooka Exp $	*/
 
 /*
  * Copyright (c) 1998 Robert Nordier
@@ -33,7 +33,7 @@
 static const char rcsid[] =
   "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.15 2000/10/10 01:49:37 wollman Exp $";
 #else
-__RCSID("$NetBSD: newfs_msdos.c,v 1.31 2009/03/26 08:39:24 pooka Exp $");
+__RCSID("$NetBSD: newfs_msdos.c,v 1.32 2009/03/28 15:17:16 pooka Exp $");
 #endif
 #endif /* not lint */
 
@@ -379,7 +379,7 @@
 	    errx(1, "failed to create %s", fname);
 	pos = lseek(fd, opt_create - 1, SEEK_SET);
 	if (write(fd, "\0", 1) != 1)
-	    errx(1, "failed to initialize %lld bytes", opt_create);
+	    err(1, "failed to set file size");
 	pos = lseek(fd, 0, SEEK_SET);
     } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1 ||
 	fstat(fd, &sb))

Reply via email to