Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Fix integer type mismatch in debug printf.



details:   https://anonhg.NetBSD.org/src/rev/70c85c1c3087
branches:  trunk
changeset: 330157:70c85c1c3087
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jun 25 13:10:27 2014 +0000

description:
Fix integer type mismatch in debug printf.

diffstat:

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

diffs (31 lines):

diff -r a21bb0675c42 -r 70c85c1c3087 sys/dev/pci/agp_i810.c
--- a/sys/dev/pci/agp_i810.c    Wed Jun 25 11:58:15 2014 +0000
+++ b/sys/dev/pci/agp_i810.c    Wed Jun 25 13:10:27 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_i810.c,v 1.103 2014/06/12 18:46:32 riastradh Exp $ */
+/*     $NetBSD: agp_i810.c,v 1.104 2014/06/25 13:10:27 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.103 2014/06/12 18:46:32 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: agp_i810.c,v 1.104 2014/06/25 13:10:27 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1093,9 +1093,10 @@
 
        if (offset < 0 || offset >= ((isc->gtt_size/4) << AGP_PAGE_SHIFT)) {
 #ifdef AGP_DEBUG
-               printf("%s: failed: offset 0x%08x, shift %d, entries %d\n",
+               printf("%s: failed"
+                   ": offset 0x%08x, shift %d, entries %"PRIdMAX"\n",
                    device_xname(sc->as_dev), (int)offset, AGP_PAGE_SHIFT,
-                   isc->gtt_size/4);
+                   (uintmax_t)isc->gtt_size/4);
 #endif
                return EINVAL;
        }



Home | Main Index | Thread Index | Old Index