==== //depot/projects/ia64/sys/cam/cam_periph.c#2 - /home/src/sys/cam/cam_periph.c ==== @@ -575,6 +575,8 @@ numbufs = 1; break; default: +printf("cam_periph_mapmem: EINVAL - %d\n", ccb->ccb_h.func_code); + return(EINVAL); break; /* NOTREACHED */ } @@ -1637,6 +1639,7 @@ case CAM_NO_HBA: case CAM_PROVIDE_FAIL: case CAM_REQ_TOO_BIG: +printf("cam_periph_error: EINVAL - %d\n", status); error = EINVAL; break; case CAM_SCSI_BUS_RESET: ==== //depot/projects/ia64/sys/cam/cam_xpt.c#6 - /home/src/sys/cam/cam_xpt.c ==== @@ -1030,6 +1030,7 @@ case XPT_RESET_BUS: if ((inccb->ccb_h.target_id != CAM_TARGET_WILDCARD) || (inccb->ccb_h.target_lun != CAM_LUN_WILDCARD)) { +printf("xptioctl: EINVAL 1 = %d\n", inccb->ccb_h.func_code); error = EINVAL; break; } @@ -1049,6 +1050,7 @@ inccb->ccb_h.target_id, inccb->ccb_h.target_lun) != CAM_REQ_CMP){ +printf("xptioctl: EINVAL 2 = %d\n", inccb->ccb_h.func_code); error = EINVAL; xpt_free_ccb(ccb); break; @@ -1081,6 +1083,7 @@ inccb->ccb_h.target_id, inccb->ccb_h.target_lun) != CAM_REQ_CMP){ +printf("xptioctl: EINVAL 3 = %d\n", inccb->ccb_h.func_code); error = EINVAL; break; } @@ -1104,6 +1107,7 @@ * type of transaction. */ if (inccb->ccb_h.flags & CAM_DATA_PHYS) { +printf("xptioctl: EINVAL 4 = %d\n", inccb->ccb_h.func_code); error = EINVAL; break; } @@ -1202,6 +1206,7 @@ * driver name. */ if (*ccb->cgdl.periph_name == '\0') { +printf("xptioctl: EINVAL 5 CAMGETPASSTHRU\n"); error = EINVAL; break; }