[Debburn-changes] r570 - cdrkit/trunk/libusal
Eduard Bloch
blade at alioth.debian.org
Thu Dec 7 00:33:06 CET 2006
Author: blade
Date: 2006-12-07 00:33:05 +0100 (Thu, 07 Dec 2006)
New Revision: 570
Modified:
cdrkit/trunk/libusal/scsi-linux-sg.c
Log:
More explicit device names in error messages
Modified: cdrkit/trunk/libusal/scsi-linux-sg.c
===================================================================
--- cdrkit/trunk/libusal/scsi-linux-sg.c 2006-12-06 23:29:31 UTC (rev 569)
+++ cdrkit/trunk/libusal/scsi-linux-sg.c 2006-12-06 23:33:05 UTC (rev 570)
@@ -411,7 +411,7 @@
*/
if (usalp->errstr)
snprintf(usalp->errstr, SCSI_ERRSTR_SIZE,
- "Cannot open %s", devname);
+ "Cannot open '%s'", devname);
if (errno != ENOENT && errno != ENXIO && errno != ENODEV) {
if (usalp->errstr)
snprintf(usalp->errstr, SCSI_ERRSTR_SIZE,
@@ -424,7 +424,7 @@
if (ioctl(f, SG_GET_TIMEOUT, &iparm) < 0) {
if (usalp->errstr)
snprintf(usalp->errstr, SCSI_ERRSTR_SIZE,
- "SCSI unsupported with %s", devname);
+ "SCSI unsupported with '%s'", devname);
close(f);
continue;
}
@@ -452,7 +452,7 @@
*/
if (usalp->errstr)
snprintf(usalp->errstr, SCSI_ERRSTR_SIZE,
- "Cannot open '/dev/sg*'");
+ "Cannot open '%s'", devname);
if(errno == EACCES || errno==EPERM)
continue;
if (errno != ENOENT && errno != ENXIO && errno != ENODEV) {
@@ -483,7 +483,7 @@
*/
if (usalp->errstr)
snprintf(usalp->errstr, SCSI_ERRSTR_SIZE,
- "Cannot open '/dev/sg*'");
+ "Cannot open '%s'", devname);
if(errno == EACCES || errno==EPERM)
continue;
if (errno != ENOENT && errno != ENXIO && errno != ENODEV) {
More information about the Debburn-changes
mailing list