Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb don't use kprintf() directly, it does not lock s...
details: https://anonhg.NetBSD.org/src/rev/232975620a36
branches: trunk
changeset: 784021:232975620a36
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 15 03:24:00 2013 +0000
description:
don't use kprintf() directly, it does not lock so it just garbles the output.
diffstat:
sys/dev/usb/ehci.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 34f26b7e9c39 -r 232975620a36 sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c Tue Jan 15 02:51:10 2013 +0000
+++ b/sys/dev/usb/ehci.c Tue Jan 15 03:24:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehci.c,v 1.198 2013/01/09 23:02:59 skrll Exp $ */
+/* $NetBSD: ehci.c,v 1.199 2013/01/15 03:24:00 christos Exp $ */
/*
* Copyright (c) 2004-2012 The NetBSD Foundation, Inc.
@@ -53,7 +53,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.198 2013/01/09 23:02:59 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.199 2013/01/15 03:24:00 christos Exp $");
#include "ohci.h"
#include "uhci.h"
@@ -83,14 +83,13 @@
#include <dev/usb/usbroothub_subr.h>
#ifdef EHCI_DEBUG
-#include <sys/kprintf.h>
static void
ehciprintf(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
- kprintf(fmt, TOLOG|TOCONS, NULL, NULL, ap);
+ vprintf(fmt, ap);
va_end(ap);
}
Home |
Main Index |
Thread Index |
Old Index