Module Name:    src
Committed By:   jakllsch
Date:           Fri Oct  7 19:41:03 UTC 2011

Modified Files:
        src/sys/dev/usb: umidi.c

Log Message:
In umidi_attach(), adjust aprint functions match what uaudio(4) does,
so that '\n' is printed in the appropriate places.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 src/sys/dev/usb/umidi.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/dev/usb/umidi.c
diff -u src/sys/dev/usb/umidi.c:1.43 src/sys/dev/usb/umidi.c:1.44
--- src/sys/dev/usb/umidi.c:1.43	Mon May 30 13:55:27 2011
+++ src/sys/dev/usb/umidi.c	Fri Oct  7 19:41:03 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: umidi.c,v 1.43 2011/05/30 13:55:27 joerg Exp $	*/
+/*	$NetBSD: umidi.c,v 1.44 2011/10/07 19:41:03 jakllsch Exp $	*/
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.43 2011/05/30 13:55:27 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.44 2011/10/07 19:41:03 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -185,8 +185,11 @@ umidi_attach(device_t parent, device_t s
 
 	sc->sc_dev = self;
 
+	aprint_naive("\n");
+	aprint_normal("\n");
+
 	devinfop = usbd_devinfo_alloc(uaa->device, 0);
-	aprint_normal("%s\n", devinfop);
+	aprint_normal_dev(self, "%s\n", devinfop);
 	usbd_devinfo_free(devinfop);
 
 	sc->sc_iface = uaa->iface;

Reply via email to