sdebug
sdebug(2, "target=%d", target);
sdebug(3, "dev=%d sc=%p", minor(dev), isp);
sdebug(2, "freezing path=%p", sp->cam_path == NULL? 0: sp->cam_path);
sdebug(2, "release path=%p", sp->cam_path == NULL? 0: sp->cam_path);
sdebug(2, "target=%d", target);
sdebug(4, "cws=%d", sp->cws);
sdebug(1, "failed");
sdebug(5, "itt=%x ttt=%x", htonl(nop_in->itt), htonl(nop_in->ttt));
sdebug(5, "enqued: pq=%p", pq);
sdebug(2, "restart ...");
sdebug(1, "resetting CmdSN to=%d (from %d)", lastcmd, sp->sn.cmd);
sdebug(2, "restarted lastcmd=0x%x", lastcmd);
sdebug(2, "flag=%d", flag);
sdebug(4, "window closed: max=0x%x exp=0x%x opcode=0x%x cmd=0x%x cws=%d.",
sdebug(4, "window opened: max=0x%x exp=0x%x opcode=0x%x cmd=0x%x cws=%d.",
sdebug(1, "we lost something ... exp=0x%x cmd=0x%x",
sdebug(5, "opcode=0x%x itt=0x%x stat#0x%x maxcmd=0x%0x",
sdebug(1, "we lost some rec=0x%x exp=0x%x",
sdebug(3, "wakeup rsp");
sdebug(1, "opcode=0x%x itt=0x%x not implemented yet",
sdebug(4, "which=%d sn->maxCmd=%d sn->cmd=%d", which, sn->maxCmd, sn->cmd);
sdebug(4, "pq=%p", pq);
sdebug(4, "opcode=0x%x sn(cmd=0x%x expCmd=0x%x maxCmd=0x%x expStat=0x%x itt=0x%x)",
sdebug(3, "started sp->flags=%x", sp->flags);
sdebug(3, "error=%d", error);
sdebug(3, "dropped ISC_SM_RUNNING");
sdebug(6, "sid=%d %s", sp->sid, sp->dev->si_name);
sdebug(2, "terminating");
sdebug(2, "waiting for ism to stop");
sdebug(2, "ism stopped");
sdebug(2, "itt=%x reason=0x%x", ntohl(itt), reject->reason);
sdebug(2, "ISCSI_LOGOUT_CMD ...");
sdebug(3, "error=%d", error);
sdebug(5, "opcode=%x iovcnt=%d uio_resid=%d itt=%x",
sdebug(5, "sp=%p sp->soc=%p uio=%p sp->td=%p",
sdebug(2, "uio->uio_resid=%d uio->uio_iovcnt=%d error=%d len=%d",
sdebug(1, "uio->uio_resid=%d uio->uio_iovcnt=%d",
sdebug(4, "uio_resid=0x%zx itt=0x%x bp=%p bo=%x len=%x/%x",
sdebug(6, "len=%d] opcode=0x%x ahs_len=0x%x ds_len=0x%x",
sdebug(2, "bad cmd window size");
sdebug(2, "terminated, flags=%x so_state=%x error=%d proc=%p",
sdebug(2, "pid=%d signaled(%d)", sp->proc->p_pid, sp->signal);
sdebug(2, "dropped ISC_CON_RUNNING");
sdebug(3, "soshutdown");
sdebug(3, "waiting flags=%x", sp->flags);
sdebug(3, "done");
sdebug(2, "maxBurstLength=%d", sp->opt.maxBurstLength);
sdebug(4, "opt.targetAddress='%s'", sp->opt.targetAddress);
sdebug(4, "opt.targetName='%s'", sp->opt.targetName);
sdebug(4, "opt.initiatorName='%s'", sp->opt.initiatorName);
sdebug(4, "opt.maxluns=%d", sp->opt.maxluns);
sdebug(2, "opt.headerDigest='%s'", hdigest);
sdebug(2, "headerDigest set");
sdebug(2, "dataDigest set");
sdebug(2, "maxRecvDataSegmentLength=%d", sp->opt.maxRecvDataSegmentLength);
sdebug(2, "maXmitDataSegmentLength=%d", sp->opt.maxXmitDataSegmentLength);
sdebug(2, "session=%d flags=%x", minor(dev), sp->flags );
sdebug(6, "dev=%d cmd=%d", minor(dev), (int)(ap->a_cmd & 0xff));
sdebug(3, "len=%d ahs_len=%d ds_len=%d", pq->len, pp->ahs_len, pp->ds_len);
sdebug(3, "copyin ahs: error=%d", error);
sdebug(3, "copyin ds: error=%d", error);
sdebug(3, "");
sdebug(4, "cnt=%d", cnt);
sdebug(3, "error=%d sp->flags=%x ", error, sp->flags);
sdebug(4, "need mbufcopy: %d", len);
sdebug(6, "len=%d ahs_len=%d ds_len=%d", pq->len, pp->ahs_len, pp->ds_len);
sdebug(2, "sessionID=%d sp=%p", n, sp);
sdebug(2, "waiting...");
sdebug(6, "bs=%x bo=%x bp=%p dsn=%x error=%d", bs, bo, bp, dsn, error);
sdebug(2, "last=%x n=%x", last, n);
sdebug(3, "hld pq=%p", pq);
sdebug(3, "pq=%p", pq);
sdebug(3, "asyncevent=0x%x asyncVCode=0x%0x", cmd->asyncEvent, cmd->asyncVCode);
sdebug(3, "nluns=%d lun=%d", sp->target_nluns, lun);
sdebug(1, "pdu_alloc failed sc->npdu_max=%d npdu_alloc=%d",
sdebug(3, "waiting...");
sdebug(3, "freezing");
sdebug(3, "no active session with target %d", ccb_h->target_id);
sdebug(3, "oversize cdb %d > 16", csio->cdb_len);
sdebug(3, "not phys");
sdebug(6, "pq=%p opq=%p bhp->opcode=0x%x len=%d",
sdebug(1, "itt=0x%x pq=%p opq=%p bhp->opcode=0x%x len=%d",
sdebug(5, "itt=0x%x opcode=%x R=%d",
sdebug(5, "copy to=%p from=%p l1=%d l2=%d mp@%p",
sdebug(3, "opcode=%02x", bhp->opcode);
sdebug(4, "itt=%x r2tSN=%d bo=%x ddtl=%x W=%d", ntohl(r2t->itt),
sdebug(4, "edtl=%x ddtl=%x bo=%x dsn=%x bs=%x maxX=%x",
sdebug(3, "itt=%x r2tSN=%d bo=%x ddtl=%x W=%d", ntohl(r2t->itt),
sdebug(1, "npdu_max=%d npdu_alloc=%d", sp->isc->npdu_max, sp->isc->npdu_alloc);