From: Martin Pitt Date: Thu, 12 Aug 2010 05:10:12 +0000 (+0200) Subject: cdrom_id: Add media status debugging X-Git-Tag: 174~373 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24af530a543c70ac59fdd244377d648ef77a0e21;p=systemd cdrom_id: Add media status debugging Show which media status the hardware originally reports, since we mangle it in some cases. --- diff --git a/extras/cdrom_id/cdrom_id.c b/extras/cdrom_id/cdrom_id.c index 83e95d58..d59991c6 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)