Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Assume that me->lun contains the device number i...



details:   https://anonhg.NetBSD.org/src/rev/91bdeb99c789
branches:  trunk
changeset: 513424:91bdeb99c789
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Jul 30 23:49:51 2001 +0000

description:
Assume that me->lun contains the device number if this event is for a
logical device.

diffstat:

 sys/dev/pci/mly.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (26 lines):

diff -r 0484f25e4608 -r 91bdeb99c789 sys/dev/pci/mly.c
--- a/sys/dev/pci/mly.c Mon Jul 30 23:47:46 2001 +0000
+++ b/sys/dev/pci/mly.c Mon Jul 30 23:49:51 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mly.c,v 1.3 2001/07/30 23:46:28 ad Exp $       */
+/*     $NetBSD: mly.c,v 1.4 2001/07/30 23:49:51 ad Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -1181,14 +1181,11 @@
        case 'm':
                /*
                 * Error on logical unit, or message about logical unit.
-                *
-                * XXX Splitting me->lun as we do in the following can't possibly
-                * be correct.  Where should we get this value?
                 */
                bus = MLY_LOGDEV_BUS(mly, me->lun);
                target = MLY_LOGDEV_TARGET(mly, me->lun);
-               printf("%s: logical device %d %s\n", mly->mly_dv.dv_xname,
-                   me->lun, tp);
+               printf("%s: logical device %d:%d %s\n", mly->mly_dv.dv_xname,
+                   bus, target, tp);
                if (action == 'r')
                        mly->mly_btl[bus][target].mb_flags |= MLY_BTL_RESCAN;
                break;



Home | Main Index | Thread Index | Old Index