Deleted Added
full compact
scsi_low.c (203108) scsi_low.c (225950)
1/* $NecBSD: scsi_low.c,v 1.24.10.8 2001/06/26 07:39:44 honda Exp $ */
2/* $NetBSD$ */
3
4#include <sys/cdefs.h>
1/* $NecBSD: scsi_low.c,v 1.24.10.8 2001/06/26 07:39:44 honda Exp $ */
2/* $NetBSD$ */
3
4#include <sys/cdefs.h>
5__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_low.c 203108 2010-01-28 08:41:30Z mav $");
5__FBSDID("$FreeBSD: head/sys/cam/scsi/scsi_low.c 225950 2011-10-03 20:32:55Z ken $");
6
7#define SCSI_LOW_STATICS
8#define SCSI_LOW_DEBUG
9#define SCSI_LOW_NEGOTIATE_BEFORE_SENSE
10#define SCSI_LOW_START_UP_CHECK
11
12/* #define SCSI_LOW_INFO_DETAIL */
13

--- 2558 unchanged lines hidden (view full) ---

2572 case SCSI_LOW_LUN_MODEQ:
2573 if (cb->ccb_error != 0)
2574 {
2575 if (cb->ccb_error & SENSEIO)
2576 {
2577#ifdef SCSI_LOW_DEBUG
2578 if (scsi_low_debug & SCSI_LOW_DEBUG_SENSE)
2579 {
6
7#define SCSI_LOW_STATICS
8#define SCSI_LOW_DEBUG
9#define SCSI_LOW_NEGOTIATE_BEFORE_SENSE
10#define SCSI_LOW_START_UP_CHECK
11
12/* #define SCSI_LOW_INFO_DETAIL */
13

--- 2558 unchanged lines hidden (view full) ---

2572 case SCSI_LOW_LUN_MODEQ:
2573 if (cb->ccb_error != 0)
2574 {
2575 if (cb->ccb_error & SENSEIO)
2576 {
2577#ifdef SCSI_LOW_DEBUG
2578 if (scsi_low_debug & SCSI_LOW_DEBUG_SENSE)
2579 {
2580 printf("SENSE: [%x][%x][%x][%x][%x]\n",
2581 (u_int) cb->ccb_sense.error_code,
2582 (u_int) cb->ccb_sense.segment,
2583 (u_int) cb->ccb_sense.flags,
2584 (u_int) cb->ccb_sense.add_sense_code,
2585 (u_int) cb->ccb_sense.add_sense_code_qual);
2580 int error_code, sense_key, asc, ascq;
2581
2582 scsi_extract_sense(&cb->ccb_sense,
2583 &error_code,
2584 &sense_key,
2585 &asc,
2586 &ascq);
2587 printf("SENSE: [%x][%x][%x][%x]\n",
2588 error_code, sense_key, asc,
2589 ascq);
2586 }
2587#endif /* SCSI_LOW_DEBUG */
2588 }
2589 else
2590 {
2591 li->li_diskflags &= ~SCSI_LOW_DISK_QTAG;
2592 }
2593 }

--- 2226 unchanged lines hidden ---
2590 }
2591#endif /* SCSI_LOW_DEBUG */
2592 }
2593 else
2594 {
2595 li->li_diskflags &= ~SCSI_LOW_DISK_QTAG;
2596 }
2597 }

--- 2226 unchanged lines hidden ---