From 24af530a543c70ac59fdd244377d648ef77a0e21 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Thu, 12 Aug 2010 07:10:12 +0200 Subject: [PATCH] cdrom_id: Add media status debugging Show which media status the hardware originally reports, since we mangle it in some cases. --- extras/cdrom_id/cdrom_id.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5