Module Name:    src
Committed By:   riz
Date:           Sat May  4 15:27:40 UTC 2013

Modified Files:
        src/usr.bin/vndcompress: vndcompress.c

Log Message:
'unsigned long' prints with %lu, not %zu.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.bin/vndcompress/vndcompress.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/vndcompress/vndcompress.c
diff -u src/usr.bin/vndcompress/vndcompress.c:1.10 src/usr.bin/vndcompress/vndcompress.c:1.11
--- src/usr.bin/vndcompress/vndcompress.c:1.10	Sat May  4 14:29:48 2013
+++ src/usr.bin/vndcompress/vndcompress.c	Sat May  4 15:27:39 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: vndcompress.c,v 1.10 2013/05/04 14:29:48 riastradh Exp $	*/
+/*	$NetBSD: vndcompress.c,v 1.11 2013/05/04 15:27:39 riz Exp $	*/
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: vndcompress.c,v 1.10 2013/05/04 14:29:48 riastradh Exp $");
+__RCSID("$NetBSD: vndcompress.c,v 1.11 2013/05/04 15:27:39 riz Exp $");
 
 #include <sys/endian.h>
 
@@ -815,7 +815,7 @@ compress_block(int in_fd, int out_fd, ui
 		err(1, "write block %"PRIu32, blkno);
 	assert(n_written >= 0);
 	if ((uint32_t)n_written != complen)
-		errx(1, "partial write of block %"PRIu32": %zd <= %zu", blkno,
+		errx(1, "partial write of block %"PRIu32": %zd <= %lu", blkno,
 		    n_written, complen);
 
 	return n_written;

Reply via email to