Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/net/lib/libshmif fix debug printf formats
details: https://anonhg.NetBSD.org/src/rev/670ad0857e0a
branches: trunk
changeset: 784008:670ad0857e0a
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Jan 14 20:21:32 2013 +0000
description:
fix debug printf formats
diffstat:
sys/rump/net/lib/libshmif/if_shmem.c | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 4cdb85aa333d -r 670ad0857e0a sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c Mon Jan 14 20:05:42 2013 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c Mon Jan 14 20:21:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_shmem.c,v 1.46 2012/10/11 10:50:45 pooka Exp $ */
+/* $NetBSD: if_shmem.c,v 1.47 2013/01/14 20:21:32 pooka Exp $ */
/*
* Copyright (c) 2009, 2010 Antti Kantee. All Rights Reserved.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.46 2012/10/11 10:50:45 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.47 2013/01/14 20:21:32 pooka Exp $");
#include <sys/param.h>
#include <sys/atomic.h>
@@ -551,7 +551,8 @@
KASSERT(pktwrote == pktsize);
if (wrap) {
busmem->shm_gen++;
- DPRINTF(("bus generation now %d\n", busmem->shm_gen));
+ DPRINTF(("bus generation now %" PRIu64 "\n",
+ busmem->shm_gen));
}
shmif_unlockbus(busmem);
@@ -653,7 +654,8 @@
MCLGET(m, M_WAIT);
}
- DPRINTF(("waiting %d/%d\n", sc->sc_nextpacket, sc->sc_devgen));
+ DPRINTF(("waiting %d/%" PRIu64 "\n",
+ sc->sc_nextpacket, sc->sc_devgen));
KASSERT(m->m_flags & M_EXT);
shmif_lockbus(busmem);
@@ -682,7 +684,7 @@
sc->sc_devgen = busmem->shm_gen - 1;
else
sc->sc_devgen = busmem->shm_gen;
- DPRINTF(("dev %p overrun, new data: %d/%d\n",
+ DPRINTF(("dev %p overrun, new data: %d/%" PRIu64 "\n",
sc, nextpkt, sc->sc_devgen));
}
@@ -708,7 +710,7 @@
if (wrap) {
sc->sc_devgen++;
- DPRINTF(("dev %p generation now %d\n",
+ DPRINTF(("dev %p generation now %" PRIu64 "\n",
sc, sc->sc_devgen));
}
Home |
Main Index |
Thread Index |
Old Index