mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 22:26:23 +00:00
scst_lib: Make a debug statement more informative
This commit is contained in:
+5
-1
@@ -5188,7 +5188,11 @@ static int scst_ws_push_single_write(struct scst_write_same_priv *wsp,
|
||||
|
||||
TRACE_ENTRY();
|
||||
|
||||
EXTRACHECKS_BUG_ON(len != sg_data_length(wsp->ws_sg, wsp->ws_sg_cnt));
|
||||
#ifdef CONFIG_SCST_EXTRACHECKS
|
||||
if (len != sg_data_length(wsp->ws_sg, wsp->ws_sg_cnt))
|
||||
WARN_ONCE(true, "lba %lld: %d <> %lld\n", lba, len,
|
||||
sg_data_length(wsp->ws_sg, wsp->ws_sg_cnt));
|
||||
#endif
|
||||
|
||||
if (unlikely(test_bit(SCST_CMD_ABORTED, &ws_cmd->cmd_flags)) ||
|
||||
unlikely(ws_cmd->completed)) {
|
||||
|
||||
Reference in New Issue
Block a user