Module Name: src
Committed By: pooka
Date: Tue Oct 20 23:21:54 UTC 2009
Modified Files:
src/sys/rump/net/lib/libshmif: if_shmem.c
Log Message:
printf -> rumpuser_dprintf
(can't use printf while holding spinlock)
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/rump/net/lib/libshmif/if_shmem.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/rump/net/lib/libshmif/if_shmem.c
diff -u src/sys/rump/net/lib/libshmif/if_shmem.c:1.7 src/sys/rump/net/lib/libshmif/if_shmem.c:1.8
--- src/sys/rump/net/lib/libshmif/if_shmem.c:1.7 Tue May 26 19:03:05 2009
+++ src/sys/rump/net/lib/libshmif/if_shmem.c Tue Oct 20 23:21:53 2009
@@ -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;
}