]> xenbits.xensource.com Git - seabios.git/commitdiff
cdrom: Demote `scsi_is_ready` return print to debug level
authorPaul Menzel <pmenzel@molgen.mpg.de>
Mon, 18 May 2020 16:58:04 +0000 (18:58 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Thu, 21 May 2020 17:38:27 +0000 (13:38 -0400)
Printing the return value of `scsi_is_ready()` is a debug message, so
change the log level from 1 to 5.

    Booting from DVD/CD...
    Device reports MEDIUM NOT PRESENT
    scsi_is_ready returned -1
    Boot failed: Could not read from CDROM (code 0003)

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
src/cdrom.c

index 577d69d8125b96be77d0c1430dbab87cd2e858b6..a77671a47cb2a11ea190f7a7cd0a1574d3305abb 100644 (file)
@@ -142,7 +142,7 @@ cdrom_boot(struct drive_s *drive)
 
     int ret = scsi_is_ready(&dop);
     if (ret)
-        dprintf(1, "scsi_is_ready returned %d\n", ret);
+        dprintf(5, "scsi_is_ready returned %d\n", ret);
 
     // Read the Boot Record Volume Descriptor
     u8 buffer[CDROM_SECTOR_SIZE];