cdrom_id: Add media status debugging

Show which media status the hardware originally reports, since we mangle it in
some cases.
This commit is contained in:
Martin Pitt 2010-08-12 07:10:12 +02:00
parent 8a5b0ff5ef
commit 24af530a54

View file

@ -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)