brasero r1416 - in trunk: . src
- From: philippr svn gnome org
- To: svn-commits-list gnome org
- Subject: brasero r1416 - in trunk: . src
- Date: Fri, 24 Oct 2008 16:08:04 +0000 (UTC)
Author: philippr
Date: Fri Oct 24 16:08:04 2008
New Revision: 1416
URL: http://svn.gnome.org/viewvc/brasero?rev=1416&view=rev
Log:
Improved debugging for sense data on error
* src/scsi-sense-data.c (brasero_sense_data_print):
Modified:
trunk/ChangeLog
trunk/src/scsi-sense-data.c
Modified: trunk/src/scsi-sense-data.c
==============================================================================
--- trunk/src/scsi-sense-data.c (original)
+++ trunk/src/scsi-sense-data.c Fri Oct 24 16:08:04 2008
@@ -74,11 +74,17 @@
if (!sense_data)
return;
- printf("Sense key: 0x%02x ", sense_data [0]);
+ /* Print that in a more sensible way */
+ BRASERO_BURN_LOG ("SK=0x%02x ASC=0x%02x ASCQ=0x%02x",
+ SENSE_DATA_KEY (sense_data),
+ SENSE_DATA_ASC (sense_data),
+ SENSE_DATA_ASCQ (sense_data));
+
+ printf ("Sense key: 0x%02x ", sense_data [0]);
for (i = 1; i < BRASERO_SENSE_DATA_SIZE; i ++)
- printf("0x%02x ", sense_data [i]);
+ printf ("0x%02x ", sense_data [i]);
- printf("\n");
+ printf ("\n");
}
static BraseroScsiResult
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]