|
From: <vl...@us...> - 2010-11-26 20:53:39
|
Revision: 2843
http://scst.svn.sourceforge.net/scst/?rev=2843&view=rev
Author: vlnb
Date: 2010-11-26 20:53:33 +0000 (Fri, 26 Nov 2010)
Log Message:
-----------
Minor improvement
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2010-11-26 15:58:54 UTC (rev 2842)
+++ trunk/scst/src/scst_targ.c 2010-11-26 20:53:33 UTC (rev 2843)
@@ -2510,14 +2510,13 @@
#endif
if (unlikely(rc != 0)) {
PRINT_ERROR("scst pass-through exec failed: %x", rc);
- if ((int)rc == -EINVAL)
- PRINT_ERROR("Do you have too low max_sectors on your "
- "backend hardware? For success bufflen "
- "must be <= max_sectors (bufflen %db, "
- "max_sectors %d sectors, CDB %x). See README "
- "for more details.", cmd->bufflen,
+ if (((int)rc == -EINVAL) &&
+ (cmd->bufflen > queue_max_hw_sectors(scsi_dev->request_queue)))
+ PRINT_ERROR("Too low max_hw_sectors %d sectors on %s "
+ "to serve command %x with bufflen %db."
+ "See README for more details.",
queue_max_hw_sectors(scsi_dev->request_queue),
- cmd->cdb[0]);
+ dev->virt_name, cmd->cdb[0], cmd->bufflen);
goto out_error;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|