Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Print portno when attaching.



details:   https://anonhg.NetBSD.org/src/rev/60fb17cedb0f
branches:  trunk
changeset: 507877:60fb17cedb0f
user:      augustss <augustss%NetBSD.org@localhost>
date:      Mon Apr 02 13:18:31 2001 +0000

description:
Print portno when attaching.

diffstat:

 sys/dev/usb/ucom.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r e1d359e36aaf -r 60fb17cedb0f sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Mon Apr 02 12:46:34 2001 +0000
+++ b/sys/dev/usb/ucom.c        Mon Apr 02 13:18:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.36 2001/01/23 22:06:25 augustss Exp $       */
+/*     $NetBSD: ucom.c,v 1.37 2001/04/02 13:18:31 augustss Exp $       */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -1092,9 +1092,12 @@
 int
 ucomprint(void *aux, const char *pnp)
 {
+       struct ucom_attach_args *uca = aux;
 
        if (pnp)
-               printf("ucom at %s\n", pnp);
+               printf("ucom at %s", pnp);
+       if (uca->portno != UCOM_UNK_PORTNO)
+               printf(" portno %d", uca->portno);
        return (UNCONF);
 }
 



Home | Main Index | Thread Index | Old Index