Debugging cleanups

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@11 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2006-10-20 18:29:55 +00:00
parent a7b053dade
commit b4e10b6c68

View File

@@ -772,10 +772,10 @@ static int q2t_xmit_response(struct scst_cmd *scst_cmd)
prm.residual =
le32_to_cpu(prm.cmd->atio.data_length) - prm.bufflen;
if (prm.residual > 0) {
TRACE_MGMT_DBG("Residual underflow: %d", prm.residual);
TRACE_DBG("Residual underflow: %d", prm.residual);
prm.rq_result |= SS_RESIDUAL_UNDER;
} else if (prm.residual < 0) {
TRACE_MGMT_DBG("Residual overflow: %d", prm.residual);
TRACE_DBG("Residual overflow: %d", prm.residual);
prm.rq_result |= SS_RESIDUAL_OVER;
prm.residual = -prm.residual;
}