summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2010-08-12 07:10:12 +0200
committerMartin Pitt <martin.pitt@ubuntu.com>2010-08-12 07:10:12 +0200
commit24af530a543c70ac59fdd244377d648ef77a0e21 (patch)
treed32f9f977ff27e2b3748bb1c2f04518d30a6f083
parent8a5b0ff5efab04a95492a75e8f048e2ec0a3d427 (diff)
cdrom_id: Add media status debugging
Show which media status the hardware originally reports, since we mangle it in some cases.
-rw-r--r--extras/cdrom_id/cdrom_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c
index 83e95d5812..d59991c6b5 100644
--- a/extras/cdrom_id/cdrom_id.c
+++ b/extras/cdrom_id/cdrom_id.c
@@ -573,6 +573,7 @@ static int cd_media_info(struct udev *udev, int fd)
cd_media = 1;
info(udev, "disk type %02x\n", header[8]);
+ info(udev, "hardware reported media status: %s\n", media_status[header[2] & 3]);
/* exclude plain CDROM, some fake cdroms return 0 for "blank" media here */
if (!cd_media_cd_rom)