msleep(500);
}
- printk("%s rc=%d, postload=%p \n", __func__, rc,
+ printk(KERN_DEBUG "%s rc=%d, postload=%p \n", __func__, rc,
coredev->postload_handler);
kfree(msg);
rc = smscore_sendrequest_and_wait(coredev, msg, msg->msgLength,
&coredev->version_ex_done);
if (rc == -ETIME) {
- printk("%s: MSG_SMS_GET_VERSION_EX_REQ failed first try\n",
- __func__);
+ printk(KERN_ERR "%s: MSG_SMS_GET_VERSION_EX_REQ "
+ "failed first try\n", __func__);
if (wait_for_completion_timeout(&coredev->resume_done,
msecs_to_jiffies(5000))) {
coredev, msg, msg->msgLength,
&coredev->version_ex_done);
if (rc < 0)
- printk("%s: MSG_SMS_GET_VERSION_EX_REQ failed "
+ printk(KERN_ERR "%s: "
+ "MSG_SMS_GET_VERSION_EX_REQ failed "
"second try, rc %d\n", __func__, rc);
} else
rc = -ETIME;
last_sample_time = time_now;
if (time_now - last_sample_time > 10000) {
- printk("\n%s data rate %d bytes/secs\n", __func__,
+ printk(KERN_DEBUG "\n%s data rate %d bytes/secs\n", __func__,
(int)((data_total * 1000) /
(time_now - last_sample_time)));
case MSG_SMS_GET_VERSION_EX_RES:
{
SmsVersionRes_ST *ver = (SmsVersionRes_ST *) phdr;
- printk("%s: MSG_SMS_GET_VERSION_EX_RES id %d "
- "prots 0x%x ver %d.%d\n", __func__,
+ printk(KERN_DEBUG "%s: MSG_SMS_GET_VERSION_EX_RES "
+ "id %d prots 0x%x ver %d.%d\n", __func__,
ver->FirmwareId, ver->SupportedProtocols,
ver->RomVersionMajor, ver->RomVersionMinor);
break;
}
case MSG_SMS_INIT_DEVICE_RES:
- printk("%s: MSG_SMS_INIT_DEVICE_RES\n", __func__);
+ printk(KERN_DEBUG "%s: MSG_SMS_INIT_DEVICE_RES\n",
+ __func__);
complete(&coredev->init_device_done);
break;
case MSG_SW_RELOAD_START_RES:
- printk("%s: MSG_SW_RELOAD_START_RES\n", __func__);
+ printk(KERN_DEBUG "%s: MSG_SW_RELOAD_START_RES\n",
+ __func__);
complete(&coredev->reload_start_done);
break;
case MSG_SMS_DATA_DOWNLOAD_RES:
complete(&coredev->data_download_done);
break;
case MSG_SW_RELOAD_EXEC_RES:
- printk("%s: MSG_SW_RELOAD_EXEC_RES\n", __func__);
+ printk(KERN_DEBUG "%s: MSG_SW_RELOAD_EXEC_RES\n",
+ __func__);
break;
case MSG_SMS_SWDOWNLOAD_TRIGGER_RES:
- printk("%s: MSG_SMS_SWDOWNLOAD_TRIGGER_RES\n",
+ printk(KERN_DEBUG "%s: MSG_SMS_SWDOWNLOAD_TRIGGER_RES\n",
__func__);
complete(&coredev->trigger_done);
break;
container_of(feed->demux, smsdvb_client_t, demux);
SmsMsgData_ST PidMsg;
- printk("%s add pid %d(%x)\n", __func__, feed->pid, feed->pid);
+ printk(KERN_DEBUG "%s add pid %d(%x)\n", __func__,
+ feed->pid, feed->pid);
PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
PidMsg.xMsgHeader.msgDstId = HIF_TASK;
container_of(feed->demux, smsdvb_client_t, demux);
SmsMsgData_ST PidMsg;
- printk("%s remove pid %d(%x)\n", __func__, feed->pid, feed->pid);
+ printk(KERN_DEBUG "%s remove pid %d(%x)\n", __func__,
+ feed->pid, feed->pid);
PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
PidMsg.xMsgHeader.msgDstId = HIF_TASK;
static int smsdvb_get_tune_settings(struct dvb_frontend *fe,
struct dvb_frontend_tune_settings *tune)
{
- printk("%s\n", __func__);
+ printk(KERN_DEBUG "%s\n", __func__);
tune->min_delay_ms = 400;
tune->step_size = 250000;
Msg.Data[0] = fep->frequency;
Msg.Data[2] = 12000000;
- printk("%s freq %d band %d\n", __func__,
+ printk(KERN_DEBUG "%s freq %d band %d\n", __func__,
fep->frequency, fep->u.ofdm.bandwidth);
switch (fep->u.ofdm.bandwidth) {
{
smsdvb_client_t *client = container_of(fe, smsdvb_client_t, frontend);
- printk("%s\n", __func__);
+ printk(KERN_DEBUG "%s\n", __func__);
/* todo: */
memcpy(fep, &client->fe_params,
rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver",
THIS_MODULE, device, adapter_nr);
if (rc < 0) {
- printk("%s dvb_register_adapter() failed %d\n", __func__, rc);
+ printk(KERN_ERR "%s dvb_register_adapter() failed %d\n",
+ __func__, rc);
goto adapter_error;
}
rc = dvb_dmx_init(&client->demux);
if (rc < 0) {
- printk("%s dvb_dmx_init failed %d\n\n", __func__, rc);
+ printk(KERN_ERR "%s dvb_dmx_init failed %d\n\n",
+ __func__, rc);
goto dvbdmx_error;
}
rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter);
if (rc < 0) {
- printk("%s dvb_dmxdev_init failed %d\n", __func__, rc);
+ printk(KERN_ERR "%s dvb_dmxdev_init failed %d\n",
+ __func__, rc);
goto dmxdev_error;
}
rc = dvb_register_frontend(&client->adapter, &client->frontend);
if (rc < 0) {
- printk("%s frontend registration failed %d\n", __func__, rc);
+ printk(KERN_ERR "%s frontend registration failed %d\n",
+ __func__, rc);
goto frontend_error;
}
if (!product_string) {
product_string = "none";
- printk("%s product string not found\n", __func__);
+ printk(KERN_ERR "%s product string not found\n", __func__);
} else if (strstr(product_string, "DVBH"))
*mode = 1;
else if (strstr(product_string, "BDA"))
else if (strstr(product_string, "TDMB"))
*mode = 2;
- printk("%s: %d \"%s\"\n", __func__, *mode, product_string);
+ printk(KERN_INFO "%s: %d \"%s\"\n", __func__, *mode, product_string);
}
int smsusb1_setmode(void *context, int mode)