From 3d2154b31e8185d24296ee2310555717e4e78fb3 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Fri, 29 Oct 2010 17:45:13 +0000 Subject: [PATCH] Regression fix: SCSI reply data logging was disabled in rev 3368, 0.8.6 --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/spc.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index bc0d415a..d0924475 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2010.10.29.164059" +#define Cdrskin_timestamP "2010.10.29.174455" diff --git a/libburn/trunk/libburn/spc.c b/libburn/trunk/libburn/spc.c index 0e85eca8..6a9e4a58 100644 --- a/libburn/trunk/libburn/spc.c +++ b/libburn/trunk/libburn/spc.c @@ -1558,12 +1558,12 @@ int scsi_eval_cmd_outcome(struct burn_drive *d, struct command *c, void *fp, enum response outcome; int done = -1, usleep_time; + if (burn_sg_log_scsi & 3) + scsi_log_err(c, fp, sense, sense_len, duration, + (sense_len > 0) | (flag & 2)); if (sense_len <= 0) return 1; - if (burn_sg_log_scsi & 3) - scsi_log_err(c, fp, sense, sense_len, duration, - 1 | (flag & 2)); outcome = scsi_error(d, sense, sense_len); if (outcome == RETRY && c->retry && !(flag & 1)) { /* Calming down retries and breaking up endless cycle