Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/nand Use %zu formats to print size_t values.



details:   https://anonhg.NetBSD.org/src/rev/d997c18d9972
branches:  trunk
changeset: 782429:d997c18d9972
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Fri Nov 02 19:50:22 2012 +0000

description:
Use %zu formats to print size_t values.

diffstat:

 sys/dev/nand/nand.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (49 lines):

diff -r 05744fd67d52 -r d997c18d9972 sys/dev/nand/nand.c
--- a/sys/dev/nand/nand.c       Fri Nov 02 17:51:03 2012 +0000
+++ b/sys/dev/nand/nand.c       Fri Nov 02 19:50:22 2012 +0000
@@ -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 @@
                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 @@
                } 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);



Home | Main Index | Thread Index | Old Index