Module Name:    src
Committed By:   ahoka
Date:           Wed Mar  9 12:33:59 UTC 2011

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

Log Message:
Add some PRIxxx macros to correctly print stdint types


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 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.4 src/sys/dev/nand/nand.c:1.5
--- src/sys/dev/nand/nand.c:1.4	Wed Mar  9 12:13:42 2011
+++ src/sys/dev/nand/nand.c	Wed Mar  9 12:33:59 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: nand.c,v 1.4 2011/03/09 12:13:42 martin Exp $	*/
+/*	$NetBSD: nand.c,v 1.5 2011/03/09 12:33:59 ahoka 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.4 2011/03/09 12:13:42 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nand.c,v 1.5 2011/03/09 12:33:59 ahoka Exp $");
 
 #include "locators.h"
 
@@ -352,16 +352,19 @@
 #endif
 
 	aprint_normal_dev(self,
-	   "page size: %zu bytes, spare size: %zu bytes, block size: %zu 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: %zu MB\n",
+	    "LUN size: %" PRIu32 " blocks, LUNs: %" PRIu8
+	    ", total storage size: %zu MB\n",
 	    chip->nc_lun_blocks, chip->nc_num_luns,
 	    chip->nc_size / 1024 / 1024);
 
 #ifdef NAND_VERBOSE
-	aprint_normal_dev(self, "column cycles: %d, row cycles: %d\n",
+	aprint_normal_dev(self, "column cycles: %" PRIu8 ", row cycles: %"
+	    PRIu8 "\n",
 	    chip->nc_addr_cycles_column, chip->nc_addr_cycles_row);
 #endif
 		

Reply via email to