]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pci: Add a little more debugging to pci_rom
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 18:22:44 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
Add some logging on failure.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/pci/pci_rom.c

index 29113f795867b11de7dd2251b6f290ad9bc4913e..eaacd4066e8297f31a989a87584c1a2c058e5f36 100644 (file)
@@ -247,7 +247,7 @@ int dm_pci_run_vga_bios(struct udevice *dev, int (*int15_handler)(void),
        }
 
        if (!board_should_load_oprom(dev))
-               return -ENXIO;
+               return log_msg_ret("Should not load OPROM", -ENXIO);
 
        ret = pci_rom_probe(dev, &rom);
        if (ret)
@@ -328,7 +328,7 @@ int vbe_setup_video_priv(struct vesa_mode_info *vesa,
                         struct video_uc_platdata *plat)
 {
        if (!vesa->x_resolution)
-               return -ENXIO;
+               return log_msg_ret("No x resolution", -ENXIO);
        uc_priv->xsize = vesa->x_resolution;
        uc_priv->ysize = vesa->y_resolution;
        switch (vesa->bits_per_pixel) {