summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/siano/smsdvb.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-19 16:35:21 -0400
committerMichael Krufky <mkrufky@linuxtv.org>2008-06-19 16:35:21 -0400
commitbcf9ebb39574d120560c3d9149a618e0e5b282d9 (patch)
treee8ba7853639cfabfb5125679184dd849b0fb5b05 /linux/drivers/media/dvb/siano/smsdvb.c
parentee252d56b4825939020961a58b4a2a52e6222608 (diff)
downloadmediapointer-dvb-s2-bcf9ebb39574d120560c3d9149a618e0e5b282d9.tar.gz
mediapointer-dvb-s2-bcf9ebb39574d120560c3d9149a618e0e5b282d9.tar.bz2
sms1xxx: move message formatting into printk macros
From: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/siano/smsdvb.c')
-rw-r--r--linux/drivers/media/dvb/siano/smsdvb.c35
1 files changed, 15 insertions, 20 deletions
diff --git a/linux/drivers/media/dvb/siano/smsdvb.c b/linux/drivers/media/dvb/siano/smsdvb.c
index c66492b4c..3aa68b600 100644
--- a/linux/drivers/media/dvb/siano/smsdvb.c
+++ b/linux/drivers/media/dvb/siano/smsdvb.c
@@ -113,7 +113,7 @@ static int smsdvb_start_feed(struct dvb_demux_feed *feed)
container_of(feed->demux, struct smsdvb_client_t, demux);
struct SmsMsgData_ST PidMsg;
- sms_debug("%s add pid %d(%x)\n", __func__,
+ sms_debug("add pid %d(%x)",
feed->pid, feed->pid);
PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
@@ -133,7 +133,7 @@ static int smsdvb_stop_feed(struct dvb_demux_feed *feed)
container_of(feed->demux, struct smsdvb_client_t, demux);
struct SmsMsgData_ST PidMsg;
- sms_debug("%s remove pid %d(%x)\n", __func__,
+ sms_debug("remove pid %d(%x)",
feed->pid, feed->pid);
PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
@@ -220,7 +220,7 @@ static int smsdvb_read_snr(struct dvb_frontend *fe, u16 *snr)
static int smsdvb_get_tune_settings(struct dvb_frontend *fe,
struct dvb_frontend_tune_settings *tune)
{
- sms_debug("%s\n", __func__);
+ sms_debug("");
tune->min_delay_ms = 400;
tune->step_size = 250000;
@@ -247,7 +247,7 @@ static int smsdvb_set_frontend(struct dvb_frontend *fe,
Msg.Data[0] = fep->frequency;
Msg.Data[2] = 12000000;
- sms_debug("%s freq %d band %d\n", __func__,
+ sms_debug("freq %d band %d",
fep->frequency, fep->u.ofdm.bandwidth);
switch (fep->u.ofdm.bandwidth) {
@@ -271,7 +271,7 @@ static int smsdvb_get_frontend(struct dvb_frontend *fe,
struct smsdvb_client_t *client =
container_of(fe, struct smsdvb_client_t, frontend);
- sms_debug("%s\n", __func__);
+ sms_debug("");
/* todo: */
memcpy(fep, &client->fe_params,
@@ -326,8 +326,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
if (smscore_get_device_mode(coredev) != 4) {
#if 1 /* new siano drop (1.2.17) does this -- yuck */
- sms_err("%sSMS Device mode is not set for "
- "DVB operation.\n", __func__);
+ sms_err("SMS Device mode is not set for "
+ "DVB operation.");
return 0;
#else
rc = smscore_set_device_mode(coredev, 4);
@@ -338,7 +338,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL);
if (!client) {
- sms_info("%s kmalloc() failed\n", __func__);
+ sms_info("kmalloc() failed");
return -ENOMEM;
}
@@ -348,8 +348,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
smscore_get_board_id(coredev))->name,
THIS_MODULE, device, adapter_nr);
if (rc < 0) {
- sms_err("%s dvb_register_adapter() failed %d\n",
- __func__, rc);
+ sms_err("dvb_register_adapter() failed %d", rc);
goto adapter_error;
}
@@ -362,8 +361,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
rc = dvb_dmx_init(&client->demux);
if (rc < 0) {
- sms_err("%s dvb_dmx_init failed %d\n\n",
- __func__, rc);
+ sms_err("dvb_dmx_init failed %d", rc);
goto dvbdmx_error;
}
@@ -374,8 +372,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter);
if (rc < 0) {
- sms_err("%s dvb_dmxdev_init failed %d\n",
- __func__, rc);
+ sms_err("dvb_dmxdev_init failed %d", rc);
goto dmxdev_error;
}
@@ -385,8 +382,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
rc = dvb_register_frontend(&client->adapter, &client->frontend);
if (rc < 0) {
- sms_err("%s frontend registration failed %d\n",
- __func__, rc);
+ sms_err("frontend registration failed %d", rc);
goto frontend_error;
}
@@ -398,8 +394,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
rc = smscore_register_client(coredev, &params, &client->smsclient);
if (rc < 0) {
- sms_info("%s smscore_register_client() failed %d\n",
- __func__, rc);
+ sms_info("smscore_register_client() failed %d", rc);
goto client_error;
}
@@ -414,7 +409,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
kmutex_unlock(&g_smsdvb_clientslock);
- sms_info("%s success\n", __func__);
+ sms_info("success");
return 0;
@@ -444,7 +439,7 @@ int smsdvb_register(void)
rc = smscore_register_hotplug(smsdvb_hotplug);
- sms_info("%s\n", __func__);
+ sms_debug("");
return rc;
}