From 3c2f16d83835bdb41e931f076979d665deeb1b3f Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Wed, 22 Sep 2010 19:26:10 +0000 Subject: [PATCH] Improved errors reporting git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2174 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_disk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_disk.c b/scst/src/dev_handlers/scst_disk.c index 3b0050489..c1e6471fd 100644 --- a/scst/src/dev_handlers/scst_disk.c +++ b/scst/src/dev_handlers/scst_disk.c @@ -517,7 +517,8 @@ static int disk_exec(struct scst_cmd *cmd) int adj_len = pg << PAGE_SHIFT; max_sectors = adj_len >> params->block_shift; if (max_sectors == 0) { - PRINT_ERROR("Too low max sectors %d", max_sectors); + PRINT_ERROR("Too low max sectors %d", + cmd->dev->scsi_dev->host->max_sectors); goto out_error; } }