提交 535bd1e9 编写于 作者: M Mauro Carvalho Chehab

[media] siano: replace sms_warn() by pr_warn()

There's no reason for a sms' own sms_warn macro. Just replace
it by the standard pr_warn().
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 5e022d1a
...@@ -1181,7 +1181,6 @@ int smscore_led_state(struct smscore_device_t *core, int led); ...@@ -1181,7 +1181,6 @@ int smscore_led_state(struct smscore_device_t *core, int led);
#define sms_log(fmt, arg...) pr_info(fmt "\n", ##arg) #define sms_log(fmt, arg...) pr_info(fmt "\n", ##arg)
#define sms_err(fmt, arg...) pr_err(fmt " on line: %d\n", ##arg, __LINE__) #define sms_err(fmt, arg...) pr_err(fmt " on line: %d\n", ##arg, __LINE__)
#define sms_warn(fmt, arg...) pr_warn(fmt "\n", ##arg)
#define sms_info(fmt, arg...) do {\ #define sms_info(fmt, arg...) do {\
if (sms_dbg & DBG_INFO) \ if (sms_dbg & DBG_INFO) \
pr_info(fmt "\n", ##arg); \ pr_info(fmt "\n", ##arg); \
......
...@@ -258,13 +258,13 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id) ...@@ -258,13 +258,13 @@ static int smsusb1_load_firmware(struct usb_device *udev, int id, int board_id)
rc = request_firmware(&fw, fw_filename, &udev->dev); rc = request_firmware(&fw, fw_filename, &udev->dev);
if (rc < 0) { if (rc < 0) {
sms_warn("failed to open \"%s\" mode %d, " pr_warn("failed to open '%s' mode %d, trying again with default firmware\n",
"trying again with default firmware", fw_filename, id); fw_filename, id);
fw_filename = smsusb1_fw_lkup[id]; fw_filename = smsusb1_fw_lkup[id];
rc = request_firmware(&fw, fw_filename, &udev->dev); rc = request_firmware(&fw, fw_filename, &udev->dev);
if (rc < 0) { if (rc < 0) {
sms_warn("failed to open \"%s\" mode %d", pr_warn("failed to open '%s' mode %d\n",
fw_filename, id); fw_filename, id);
return rc; return rc;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册