From d5cacfee5170de2fcb36b693199a14442b5c1619 Mon Sep 17 00:00:00 2001 From: Patrick Boettcher Date: Tue, 3 Aug 2004 22:58:22 +0000 Subject: added some more detailed firmware debug messages --- linux/drivers/media/dvb/vp7041/vp7041.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'linux/drivers/media/dvb/vp7041') diff --git a/linux/drivers/media/dvb/vp7041/vp7041.c b/linux/drivers/media/dvb/vp7041/vp7041.c index f5d93be73..a570adef2 100644 --- a/linux/drivers/media/dvb/vp7041/vp7041.c +++ b/linux/drivers/media/dvb/vp7041/vp7041.c @@ -876,11 +876,14 @@ static int vp7041_loadfirmware(struct usb_device *udev) { const struct firmware *fw = NULL; int ret = 0, i; - for (i = 0; i < sizeof(firmware_filenames)/sizeof(char*); i++) - if (request_firmware(&fw, firmware_filenames[i], &udev->dev) == 0) { + for (i = 0; i < sizeof(firmware_filenames)/sizeof(char*); i++) { + if ((ret = request_firmware(&fw, firmware_filenames[i], &udev->dev)) == 0) { info("found firmware file (%s).",firmware_filenames[i]); break; } + dprintk("Firmware '%s' not found. (%d)\n",firmware_filenames[i],ret); + } + if (fw == NULL) { err("Did not find a valid firmware."); -- cgit v1.2.3