Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/spi Fix printf formating in DPRINTF.



details:   https://anonhg.NetBSD.org/src/rev/a6441d06a4c0
branches:  trunk
changeset: 328156:a6441d06a4c0
user:      hkenken <hkenken%NetBSD.org@localhost>
date:      Fri Mar 28 11:52:51 2014 +0000

description:
Fix printf formating in DPRINTF.

diffstat:

 sys/dev/spi/spiflash.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (37 lines):

diff -r 52463ec49aa5 -r a6441d06a4c0 sys/dev/spi/spiflash.c
--- a/sys/dev/spi/spiflash.c    Fri Mar 28 11:49:40 2014 +0000
+++ b/sys/dev/spi/spiflash.c    Fri Mar 28 11:52:51 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: spiflash.c,v 1.12 2014/01/28 19:26:32 martin Exp $ */
+/* $NetBSD: spiflash.c,v 1.13 2014/03/28 11:52:51 hkenken Exp $ */
 
 /*-
  * Copyright (c) 2006 Urbana-Champaign Independent Media Center.
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.12 2014/01/28 19:26:32 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spiflash.c,v 1.13 2014/03/28 11:52:51 hkenken Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -457,7 +457,7 @@
         * do the erase, if we need to.
         */
        if (neederase) {
-               DPRINTF(("erasing from %x - %x\n", base, base + len));
+               DPRINTF(("erasing from %zx - %zx\n", base, base + len));
                if ((err = sc->sc_erase(sc, base, len)) != 0) {
                        spiflash_process_done(sc, err);
                        return;
@@ -467,8 +467,7 @@
        /*
         * now write our save area, and finish up.
         */
-       DPRINTF(("flashing %d bytes to %x from %x\n", len,
-                   base, (unsigned)save));
+       DPRINTF(("flashing %d bytes to %zx from %p\n", len, base, save));
        err = sc->sc_write(sc, base, len, save);
        spiflash_process_done(sc, err);
 }



Home | Main Index | Thread Index | Old Index