Commit 5068b7a4 authored by Michael Krufky's avatar Michael Krufky Committed by Mauro Carvalho Chehab

V4L/DVB (8306): sms1xxx: log firmware download process by default

Signed-off-by: default avatarMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 0f2a1ee1
...@@ -791,19 +791,23 @@ int smscore_set_device_mode(struct smscore_device_t *coredev, int mode) ...@@ -791,19 +791,23 @@ int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
rc = smscore_load_firmware_from_file(coredev, rc = smscore_load_firmware_from_file(coredev,
fw_filename, NULL); fw_filename, NULL);
if (rc < 0) { if (rc < 0) {
sms_err("error %d loading firmware: %s, " sms_warn("error %d loading firmware: %s, "
"trying again with default firmware", "trying again with default firmware",
rc, fw_filename); rc, fw_filename);
/* try again with the default firmware */ /* try again with the default firmware */
fw_filename = smscore_fw_lkup[mode][type];
rc = smscore_load_firmware_from_file(coredev, rc = smscore_load_firmware_from_file(coredev,
smscore_fw_lkup[mode][type], NULL); fw_filename, NULL);
if (rc < 0) { if (rc < 0) {
sms_err("load firmware failed %d", rc); sms_warn("error %d loading "
"firmware: %s", rc,
fw_filename);
return rc; return rc;
} }
} }
sms_log("firmware download success: %s", fw_filename);
} else } else
sms_info("mode %d supported by running " sms_info("mode %d supported by running "
"firmware", mode); "firmware", mode);
......
...@@ -421,10 +421,10 @@ extern int sms_debug; ...@@ -421,10 +421,10 @@ extern int sms_debug;
if (sms_debug & lvl) \ if (sms_debug & lvl) \
sms_printk(kern, fmt, ##arg); } while (0) sms_printk(kern, fmt, ##arg); } while (0)
#define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg)
#define sms_err(fmt, arg...) \ #define sms_err(fmt, arg...) \
sms_printk(KERN_ERR, "line: %d: " fmt, __LINE__, ##arg) sms_printk(KERN_ERR, "line: %d: " fmt, __LINE__, ##arg)
#define sms_warn(fmt, arg...) \ #define sms_warn(fmt, arg...) sms_printk(KERN_WARNING, fmt, ##arg)
sms_printk(KERN_WARNING, "line: %d: " fmt, __LINE__, ##arg)
#define sms_info(fmt, arg...) \ #define sms_info(fmt, arg...) \
dprintk(KERN_INFO, DBG_INFO, fmt, ##arg) dprintk(KERN_INFO, DBG_INFO, fmt, ##arg)
#define sms_debug(fmt, arg...) \ #define sms_debug(fmt, arg...) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment