Module Name:    src
Committed By:   pgoyette
Date:           Fri Nov  2 19:50:23 UTC 2012

Modified Files:
        src/sys/dev/nand: nand.c

Log Message:
Use %zu formats to print size_t values.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 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.19 src/sys/dev/nand/nand.c:1.20
--- src/sys/dev/nand/nand.c:1.19	Fri Nov  2 17:14:41 2012
+++ src/sys/dev/nand/nand.c	Fri Nov  2 19:50:22 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: nand.c,v 1.19 2012/11/02 17:14:41 ahoka Exp $	*/
+/*	$NetBSD: nand.c,v 1.20 2012/11/02 19:50:22 pgoyette 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.19 2012/11/02 17:14:41 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.20 2012/11/02 19:50:22 pgoyette Exp $");
 
 #include "locators.h"
 
@@ -727,18 +727,18 @@ nand_default_read_page(device_t self, si
 		case NAND_ECC_CORRECTED:
 			aprint_error_dev(self,
 			    "data corrected with ECC at page offset 0x%jx "
-			    "block %" PRIu32 "\n", (uintmax_t)offset, b);
+			    "block %zu\n", (uintmax_t)offset, b);
 			break;
 		case NAND_ECC_TWOBIT:
 			aprint_error_dev(self,
 			    "uncorrectable ECC error at page offset 0x%jx "
-			    "block %" PRIu32 "\n", (uintmax_t)offset, b);
+			    "block %zu\n", (uintmax_t)offset, b);
 			return EIO;
 			break;
 		case NAND_ECC_INVALID:
 			aprint_error_dev(self,
 			    "invalid ECC in oob at page offset 0x%jx "
-			    "block %" PRIu32 "\n", (uintmax_t)offset, b);
+			    "block %zu\n", (uintmax_t)offset, b);
 			return EIO;
 			break;
 		default:
@@ -1153,7 +1153,7 @@ nand_flash_write_unaligned(device_t self
 		} else {
 			/* XXX debug */
 			if (left > chip->nc_page_size) {
-				printf("left: %" PRIu32 ", i: %d, count: %" PRIu32 "\n",
+				printf("left: %zu, i: %d, count: %zu\n",
 				    left, i, count);
 			}
 			KASSERT(left > chip->nc_page_size);

Reply via email to