aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-28 22:27:19 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:23:38 -0400
commit5068b7a449293ced0ea963f3c944189d78fe1b1e (patch)
treee83ddf51e98eeb0f894e4869f014f077031cfa33 /drivers/media/dvb/siano
parent0f2a1ee112a4709a3b1a3c3c64b5d11752da1eef (diff)
V4L/DVB (8306): sms1xxx: log firmware download process by default
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano')
-rw-r--r--drivers/media/dvb/siano/smscoreapi.c14
-rw-r--r--drivers/media/dvb/siano/smscoreapi.h4
2 files changed, 11 insertions, 7 deletions
diff --git a/drivers/media/dvb/siano/smscoreapi.c b/drivers/media/dvb/siano/smscoreapi.c
index c54c7180e39e..1dd196600036 100644
--- a/drivers/media/dvb/siano/smscoreapi.c
+++ b/drivers/media/dvb/siano/smscoreapi.c
@@ -791,19 +791,23 @@ int smscore_set_device_mode(struct smscore_device_t *coredev, int mode)
791 rc = smscore_load_firmware_from_file(coredev, 791 rc = smscore_load_firmware_from_file(coredev,
792 fw_filename, NULL); 792 fw_filename, NULL);
793 if (rc < 0) { 793 if (rc < 0) {
794 sms_err("error %d loading firmware: %s, " 794 sms_warn("error %d loading firmware: %s, "
795 "trying again with default firmware", 795 "trying again with default firmware",
796 rc, fw_filename); 796 rc, fw_filename);
797 797
798 /* try again with the default firmware */ 798 /* try again with the default firmware */
799 fw_filename = smscore_fw_lkup[mode][type];
799 rc = smscore_load_firmware_from_file(coredev, 800 rc = smscore_load_firmware_from_file(coredev,
800 smscore_fw_lkup[mode][type], NULL); 801 fw_filename, NULL);
801 802
802 if (rc < 0) { 803 if (rc < 0) {
803 sms_err("load firmware failed %d", rc); 804 sms_warn("error %d loading "
805 "firmware: %s", rc,
806 fw_filename);
804 return rc; 807 return rc;
805 } 808 }
806 } 809 }
810 sms_log("firmware download success: %s", fw_filename);
807 } else 811 } else
808 sms_info("mode %d supported by running " 812 sms_info("mode %d supported by running "
809 "firmware", mode); 813 "firmware", mode);
diff --git a/drivers/media/dvb/siano/smscoreapi.h b/drivers/media/dvb/siano/smscoreapi.h
index 3e4e7dbc54da..c1f56900b3ea 100644
--- a/drivers/media/dvb/siano/smscoreapi.h
+++ b/drivers/media/dvb/siano/smscoreapi.h
@@ -421,10 +421,10 @@ extern int sms_debug;
421 if (sms_debug & lvl) \ 421 if (sms_debug & lvl) \
422 sms_printk(kern, fmt, ##arg); } while (0) 422 sms_printk(kern, fmt, ##arg); } while (0)
423 423
424#define sms_log(fmt, arg...) sms_printk(KERN_INFO, fmt, ##arg)
424#define sms_err(fmt, arg...) \ 425#define sms_err(fmt, arg...) \
425 sms_printk(KERN_ERR, "line: %d: " fmt, __LINE__, ##arg) 426 sms_printk(KERN_ERR, "line: %d: " fmt, __LINE__, ##arg)
426#define sms_warn(fmt, arg...) \ 427#define sms_warn(fmt, arg...) sms_printk(KERN_WARNING, fmt, ##arg)
427 sms_printk(KERN_WARNING, "line: %d: " fmt, __LINE__, ##arg)
428#define sms_info(fmt, arg...) \ 428#define sms_info(fmt, arg...) \
429 dprintk(KERN_INFO, DBG_INFO, fmt, ##arg) 429 dprintk(KERN_INFO, DBG_INFO, fmt, ##arg)
430#define sms_debug(fmt, arg...) \ 430#define sms_debug(fmt, arg...) \