From f87747802a57bb6b5f010519f29115d868a2de68 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Wed, 18 Mar 2009 12:45:59 +0000 Subject: [PATCH] Human readable error messages for asc=08 "Logical unit communication failure" --- cdrskin/cdrskin_timestamp.h | 2 +- libburn/spc.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cdrskin/cdrskin_timestamp.h b/cdrskin/cdrskin_timestamp.h index bbc7bdf..b6cd67f 100644 --- a/cdrskin/cdrskin_timestamp.h +++ b/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.03.16.190745" +#define Cdrskin_timestamP "2009.03.18.124558" diff --git a/libburn/spc.c b/libburn/spc.c index b941ce9..3955472 100644 --- a/libburn/spc.c +++ b/libburn/spc.c @@ -920,6 +920,18 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense, sprintf(msg, "Logical unit is in the process of becoming ready"); return RETRY; + case 0x08: + if (*key != 4) + break; + if (*ascq == 0) + sprintf(msg, "Logical unit communication failure"); + else if (*ascq == 1) + sprintf(msg, "Logical unit communication timeout"); + else if (*ascq == 2) + sprintf(msg, "Logical unit communication parity error"); + else if (*ascq == 3) + sprintf(msg, "Logical unit communication crc error"); + return RETRY; case 0x09: if (*key != 4) break;