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 Make shmif buildable when DRPINTF ...



details:   https://anonhg.NetBSD.org/src/rev/0d9cd4926c56
branches:  trunk
changeset: 332343:0d9cd4926c56
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Wed Sep 17 04:20:58 2014 +0000

description:
Make shmif buildable when DRPINTF enabled

diffstat:

 sys/rump/net/lib/libshmif/shmif_busops.c |  10 +++++-----
 sys/rump/net/lib/libshmif/shmifvar.h     |   3 ++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (57 lines):

diff -r 943b1e25dfc1 -r 0d9cd4926c56 sys/rump/net/lib/libshmif/shmif_busops.c
--- a/sys/rump/net/lib/libshmif/shmif_busops.c  Wed Sep 17 01:00:41 2014 +0000
+++ b/sys/rump/net/lib/libshmif/shmif_busops.c  Wed Sep 17 04:20:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shmif_busops.c,v 1.11 2013/12/20 10:00:59 pooka Exp $  */
+/*     $NetBSD: shmif_busops.c,v 1.12 2014/09/17 04:20:58 ozaki-r Exp $        */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -29,10 +29,10 @@
 
 #ifdef _KERNEL
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: shmif_busops.c,v 1.11 2013/12/20 10:00:59 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: shmif_busops.c,v 1.12 2014/09/17 04:20:58 ozaki-r Exp $");
 #else
 #include <rump/rumpuser_port.h>
-__RCSID("$NetBSD: shmif_busops.c,v 1.11 2013/12/20 10:00:59 pooka Exp $");
+__RCSID("$NetBSD: shmif_busops.c,v 1.12 2014/09/17 04:20:58 ozaki-r Exp $");
 #endif
 
 #include <sys/param.h>
@@ -111,7 +111,7 @@
 
        memcpy(busmem->shm_data + off, data, chunk);
 
-       DPRINTF(("buswrite: wrote %d bytes to %d", chunk, off));
+       DPRINTF(("buswrite: wrote %zu bytes to %d", chunk, off));
 
        if (filledbus) {
                *wrap = true;
@@ -122,7 +122,7 @@
                return (off + chunk) % BUSMEM_DATASIZE;
        }
 
-       DPRINTF((", wrapped bytes %d to 0\n", len));
+       DPRINTF((", wrapped bytes %zu to 0\n", len));
 
        shmif_advancefirst(busmem, 0, len);
 
diff -r 943b1e25dfc1 -r 0d9cd4926c56 sys/rump/net/lib/libshmif/shmifvar.h
--- a/sys/rump/net/lib/libshmif/shmifvar.h      Wed Sep 17 01:00:41 2014 +0000
+++ b/sys/rump/net/lib/libshmif/shmifvar.h      Wed Sep 17 04:20:58 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shmifvar.h,v 1.9 2014/08/16 06:18:01 ozaki-r Exp $     */
+/*     $NetBSD: shmifvar.h,v 1.10 2014/09/17 04:20:58 ozaki-r Exp $    */
 
 /*-
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -68,6 +68,7 @@
 #include <rump/rumpuser.h>
 #define DPRINTF(x) rumpuser_dprintf x
 #else
+#include <stdio.h>
 #define DPRINTF(x) printf x
 #endif
 #else



Home | Main Index | Thread Index | Old Index