From 1bda3b83a9aacf5aaab4158b8bb04c64ccce0980 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Tue, 6 Jan 2009 12:25:53 +0000 Subject: [PATCH] Error texts for ASC 73 : power calibration and program memory --- libburn/trunk/cdrskin/cdrskin_timestamp.h | 2 +- libburn/trunk/libburn/spc.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libburn/trunk/cdrskin/cdrskin_timestamp.h b/libburn/trunk/cdrskin/cdrskin_timestamp.h index 502bfe05..17956349 100644 --- a/libburn/trunk/cdrskin/cdrskin_timestamp.h +++ b/libburn/trunk/cdrskin/cdrskin_timestamp.h @@ -1 +1 @@ -#define Cdrskin_timestamP "2009.01.04.113401" +#define Cdrskin_timestamP "2009.01.06.122534" diff --git a/libburn/trunk/libburn/spc.c b/libburn/trunk/libburn/spc.c index 2cb821d2..a4cada92 100644 --- a/libburn/trunk/libburn/spc.c +++ b/libburn/trunk/libburn/spc.c @@ -1122,6 +1122,20 @@ enum response scsi_error_msg(struct burn_drive *d, unsigned char *sense, else break; return FAIL; + case 0x73: + if (*key == 3 && *ascq == 0) + sprintf(msg, "CD control error"); + else if (*key == 3 && *ascq == 2) + sprintf(msg, "Power calibration area is full"); + else if (*key == 3 && *ascq == 3) + sprintf(msg, "Power calibration area error"); + else if (*key == 3 && *ascq == 4) + sprintf(msg, "Program memory area update failure"); + else if (*key == 3 && *ascq == 5) + sprintf(msg, "Program memory area is full"); + else + break; + return FAIL; } sprintf(msg_data, "Failure. See mmc3r10g.pdf: Sense Key %X ASC %2.2X ASCQ %2.2X",