PERFORCE change 30566 for review
Marcel Moolenaar
marcel at FreeBSD.org
Sun May 4 18:18:40 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=30566
Change 30566 by marcel at marcel_nfs on 2003/05/04 18:18:00
Slightly change how print device info.
Affected files ...
.. //depot/projects/sio/sys/dev/sio/sio.c#6 edit
Differences ...
==== //depot/projects/sio/sys/dev/sio/sio.c#6 (text+ko) ====
@@ -811,17 +811,12 @@
termioschars(&com->it_in);
com->it_out = com->it_in;
- if (com->consdev != NULL || com->dbgport) {
- device_printf(dev, "is ");
- if (com->consdev != NULL) {
- printf("console");
- if (com->dbgport)
- printf("and ");
- }
- if (com->dbgport)
- printf("debug port");
- printf(".\n");
- }
+ if (com->consdev != NULL && com->dbgport)
+ device_printf(dev, "%s, %s\n", "console", "debug port");
+ else if (com->consdev != NULL)
+ device_printf(dev, "%s\n", "console");
+ else if (com->dbgport)
+ device_printf(dev, "%s\n", "debug port");
if (sio_fast_ih == NULL) {
swi_add(&tty_ithd, "tty:sio", siopoll, NULL, SWI_TTY, 0,
More information about the p4-projects
mailing list