Browse Source

Reporting eventual SCSI sense in sg-linux repeat loop

tags/ZeroEightZero
Thomas Schmitt 10 years ago
parent
commit
2069ffa863
2 changed files with 5 additions and 2 deletions
  1. +1
    -1
      cdrskin/cdrskin_timestamp.h
  2. +4
    -1
      libburn/sg-linux.c

+ 1
- 1
cdrskin/cdrskin_timestamp.h View File

@@ -1 +1 @@
#define Cdrskin_timestamP "2010.04.04.181237"
#define Cdrskin_timestamP "2010.04.09.090645"

+ 4
- 1
libburn/sg-linux.c View File

@@ -1928,8 +1928,11 @@ int sg_issue_command(struct burn_drive *d, struct command *c)
switch (scsi_error(d, s.sbp, s.sb_len_wr)) {
case RETRY:
done = 0;
if (burn_sg_log_scsi & 3)
if (burn_sg_log_scsi & 3) {
scsi_log_err(c, fp, s.sbp, s.duration,
c->error != 0);
scsi_log_cmd(c,fp,0);
}
break;
case FAIL:
done = 1;


Loading…
Cancel
Save