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 printf -> rumpuser_dprintf



details:   https://anonhg.NetBSD.org/src/rev/2c0234ecf959
branches:  trunk
changeset: 748331:2c0234ecf959
user:      pooka <pooka%NetBSD.org@localhost>
date:      Tue Oct 20 23:21:53 2009 +0000

description:
printf -> rumpuser_dprintf
(can't use printf while holding spinlock)

diffstat:

 sys/rump/net/lib/libshmif/if_shmem.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 2caac9a42f95 -r 2c0234ecf959 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c      Tue Oct 20 22:00:38 2009 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c      Tue Oct 20 23:21:53 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_shmem.c,v 1.7 2009/05/26 19:03:05 pooka Exp $       */
+/*     $NetBSD: if_shmem.c,v 1.8 2009/10/20 23:21:53 pooka Exp $       */
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.7 2009/05/26 19:03:05 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.8 2009/10/20 23:21:53 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/fcntl.h>
@@ -49,7 +49,7 @@
 #include "rump_private.h"
 
 #if 0
-#define DPRINTF(x) printf x
+#define DPRINTF(x) rumpuser_dprintf x
 #else
 #define DPRINTF(x)
 #endif
@@ -346,7 +346,7 @@
                    || (busgen > sc->sc_prevgen+1)) {
                        nextpkt = lastpkt;
                        sc->sc_prevgen = busgen;
-                       printf("DROPPING\n");
+                       rumpuser_dprintf("DROPPING\n");
                } else {
                        nextpkt = sc->sc_nextpacket;
                }



Home | Main Index | Thread Index | Old Index