Module Name: src
Committed By: martin
Date: Wed Mar 9 12:13:42 UTC 2011
Modified Files:
src/sys/dev/nand: nand.c
Log Message:
Use %zu for size_t
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/nand/nand.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/nand/nand.c
diff -u src/sys/dev/nand/nand.c:1.3 src/sys/dev/nand/nand.c:1.4
--- src/sys/dev/nand/nand.c:1.3 Wed Mar 9 10:05:08 2011
+++ src/sys/dev/nand/nand.c Wed Mar 9 12:13:42 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: nand.c,v 1.3 2011/03/09 10:05:08 ahoka Exp $ */
+/* $NetBSD: nand.c,v 1.4 2011/03/09 12:13:42 martin Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -34,7 +34,7 @@
/* Common driver for NAND chips implementing the ONFI 2.2 specification */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.3 2011/03/09 10:05:08 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.4 2011/03/09 12:13:42 martin Exp $");
#include "locators.h"
@@ -352,11 +352,11 @@
#endif
aprint_normal_dev(self,
- "page size: %u bytes, spare size: %u bytes, block size: %u bytes\n",
+ "page size: %zu bytes, spare size: %zu bytes, block size: %zu bytes\n",
chip->nc_page_size, chip->nc_spare_size, chip->nc_block_size);
aprint_normal_dev(self,
- "LUN size: %u blocks, LUNs: %u, total storage size: %u MB\n",
+ "LUN size: %u blocks, LUNs: %u, total storage size: %zu MB\n",
chip->nc_lun_blocks, chip->nc_num_luns,
chip->nc_size / 1024 / 1024);