aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smsdvb.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-19 19:35:21 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:22:37 -0400
commita0c0abcb1fdb316dee3a38cff9843d7d094c327c (patch)
tree6f6284afd5940e43df2b8004b3bed789fef09ba6 /drivers/media/dvb/siano/smsdvb.c
parent068d6c0f5d6c67d0e93f8e214897ddd64746be4e (diff)
V4L/DVB (8294): sms1xxx: move message formatting into printk macros
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r--drivers/media/dvb/siano/smsdvb.c35
1 files changed, 15 insertions, 20 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index 57ab7db56a65..a54e9c77edd8 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -113,7 +113,7 @@ static int smsdvb_start_feed(struct dvb_demux_feed *feed)
113 container_of(feed->demux, struct smsdvb_client_t, demux); 113 container_of(feed->demux, struct smsdvb_client_t, demux);
114 struct SmsMsgData_ST PidMsg; 114 struct SmsMsgData_ST PidMsg;
115 115
116 sms_debug("%s add pid %d(%x)\n", __func__, 116 sms_debug("add pid %d(%x)",
117 feed->pid, feed->pid); 117 feed->pid, feed->pid);
118 118
119 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 119 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
@@ -133,7 +133,7 @@ static int smsdvb_stop_feed(struct dvb_demux_feed *feed)
133 container_of(feed->demux, struct smsdvb_client_t, demux); 133 container_of(feed->demux, struct smsdvb_client_t, demux);
134 struct SmsMsgData_ST PidMsg; 134 struct SmsMsgData_ST PidMsg;
135 135
136 sms_debug("%s remove pid %d(%x)\n", __func__, 136 sms_debug("remove pid %d(%x)",
137 feed->pid, feed->pid); 137 feed->pid, feed->pid);
138 138
139 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 139 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
@@ -220,7 +220,7 @@ static int smsdvb_read_snr(struct dvb_frontend *fe, u16 *snr)
220static int smsdvb_get_tune_settings(struct dvb_frontend *fe, 220static int smsdvb_get_tune_settings(struct dvb_frontend *fe,
221 struct dvb_frontend_tune_settings *tune) 221 struct dvb_frontend_tune_settings *tune)
222{ 222{
223 sms_debug("%s\n", __func__); 223 sms_debug("");
224 224
225 tune->min_delay_ms = 400; 225 tune->min_delay_ms = 400;
226 tune->step_size = 250000; 226 tune->step_size = 250000;
@@ -247,7 +247,7 @@ static int smsdvb_set_frontend(struct dvb_frontend *fe,
247 Msg.Data[0] = fep->frequency; 247 Msg.Data[0] = fep->frequency;
248 Msg.Data[2] = 12000000; 248 Msg.Data[2] = 12000000;
249 249
250 sms_debug("%s freq %d band %d\n", __func__, 250 sms_debug("freq %d band %d",
251 fep->frequency, fep->u.ofdm.bandwidth); 251 fep->frequency, fep->u.ofdm.bandwidth);
252 252
253 switch (fep->u.ofdm.bandwidth) { 253 switch (fep->u.ofdm.bandwidth) {
@@ -268,7 +268,7 @@ static int smsdvb_get_frontend(struct dvb_frontend *fe,
268 struct smsdvb_client_t *client = 268 struct smsdvb_client_t *client =
269 container_of(fe, struct smsdvb_client_t, frontend); 269 container_of(fe, struct smsdvb_client_t, frontend);
270 270
271 sms_debug("%s\n", __func__); 271 sms_debug("");
272 272
273 /* todo: */ 273 /* todo: */
274 memcpy(fep, &client->fe_params, 274 memcpy(fep, &client->fe_params,
@@ -322,14 +322,14 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
322 return 0; 322 return 0;
323 323
324 if (smscore_get_device_mode(coredev) != 4) { 324 if (smscore_get_device_mode(coredev) != 4) {
325 sms_err("%sSMS Device mode is not set for " 325 sms_err("SMS Device mode is not set for "
326 "DVB operation.\n", __func__); 326 "DVB operation.");
327 return 0; 327 return 0;
328 } 328 }
329 329
330 client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL); 330 client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL);
331 if (!client) { 331 if (!client) {
332 sms_info("%s kmalloc() failed\n", __func__); 332 sms_info("kmalloc() failed");
333 return -ENOMEM; 333 return -ENOMEM;
334 } 334 }
335 335
@@ -339,8 +339,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
339 smscore_get_board_id(coredev))->name, 339 smscore_get_board_id(coredev))->name,
340 THIS_MODULE, device, adapter_nr); 340 THIS_MODULE, device, adapter_nr);
341 if (rc < 0) { 341 if (rc < 0) {
342 sms_err("%s dvb_register_adapter() failed %d\n", 342 sms_err("dvb_register_adapter() failed %d", rc);
343 __func__, rc);
344 goto adapter_error; 343 goto adapter_error;
345 } 344 }
346 345
@@ -353,8 +352,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
353 352
354 rc = dvb_dmx_init(&client->demux); 353 rc = dvb_dmx_init(&client->demux);
355 if (rc < 0) { 354 if (rc < 0) {
356 sms_err("%s dvb_dmx_init failed %d\n\n", 355 sms_err("dvb_dmx_init failed %d", rc);
357 __func__, rc);
358 goto dvbdmx_error; 356 goto dvbdmx_error;
359 } 357 }
360 358
@@ -365,8 +363,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
365 363
366 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter); 364 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter);
367 if (rc < 0) { 365 if (rc < 0) {
368 sms_err("%s dvb_dmxdev_init failed %d\n", 366 sms_err("dvb_dmxdev_init failed %d", rc);
369 __func__, rc);
370 goto dmxdev_error; 367 goto dmxdev_error;
371 } 368 }
372 369
@@ -376,8 +373,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
376 373
377 rc = dvb_register_frontend(&client->adapter, &client->frontend); 374 rc = dvb_register_frontend(&client->adapter, &client->frontend);
378 if (rc < 0) { 375 if (rc < 0) {
379 sms_err("%s frontend registration failed %d\n", 376 sms_err("frontend registration failed %d", rc);
380 __func__, rc);
381 goto frontend_error; 377 goto frontend_error;
382 } 378 }
383 379
@@ -389,8 +385,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
389 385
390 rc = smscore_register_client(coredev, &params, &client->smsclient); 386 rc = smscore_register_client(coredev, &params, &client->smsclient);
391 if (rc < 0) { 387 if (rc < 0) {
392 sms_info("%s smscore_register_client() failed %d\n", 388 sms_info("smscore_register_client() failed %d", rc);
393 __func__, rc);
394 goto client_error; 389 goto client_error;
395 } 390 }
396 391
@@ -405,7 +400,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
405 400
406 kmutex_unlock(&g_smsdvb_clientslock); 401 kmutex_unlock(&g_smsdvb_clientslock);
407 402
408 sms_info("%s success\n", __func__); 403 sms_info("success");
409 404
410 return 0; 405 return 0;
411 406
@@ -435,7 +430,7 @@ int smsdvb_register(void)
435 430
436 rc = smscore_register_hotplug(smsdvb_hotplug); 431 rc = smscore_register_hotplug(smsdvb_hotplug);
437 432
438 sms_info("%s\n", __func__); 433 sms_debug("");
439 434
440 return rc; 435 return rc;
441} 436}