|
From: <vl...@us...> - 2014-06-13 22:24:11
|
Revision: 5600
http://sourceforge.net/p/scst/svn/5600
Author: vlnb
Date: 2014-06-13 22:24:06 +0000 (Fri, 13 Jun 2014)
Log Message:
-----------
scst: Avoid that W=1 triggers complaints about unused variables
Avoid that building scst with W=1 triggers compiler warnings about
variables that are set but not used. See also the documentation of
the gcc compiler flag -Wunused-but-set-variable.
Signed-off-by: Bart Van Assche <bva...@ac...>
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2014-06-13 06:59:13 UTC (rev 5599)
+++ trunk/scst/src/scst_targ.c 2014-06-13 22:24:06 UTC (rev 5600)
@@ -5997,6 +5997,8 @@
TRACE(TRACE_MGMT, "Resetting host %d bus ",
dev->scsi_dev->host->host_no);
rc = scsi_reset_provider(dev->scsi_dev, SCSI_TRY_RESET_DEVICE);
+ TRACE(TRACE_MGMT, "scsi_reset_provider(%s) returned %d",
+ dev->virt_name, rc);
#if 0
if (rc != SUCCESS && mcmd->status == SCST_MGMT_STATUS_SUCCESS)
scst_mgmt_cmd_set_status(mcmd, SCST_MGMT_STATUS_FAILED);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|