mirror of
https://github.com/systemd/systemd.git
synced 2025-03-19 22:50:17 +03:00
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:
parent
8a5b0ff5ef
commit
24af530a54
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user