strcpy(entry->devpath, devpath);
list_add(&entry->entry, &g_smscore_registry);
} else
- sms_err("%s failed to create smscore_registry.\n",
- __func__);
+ sms_err("failed to create smscore_registry.");
kmutex_unlock(&g_smscore_registrylock);
return entry;
}
if (entry)
return entry->mode;
else
- sms_err("%s No registry found.\n", __func__);
+ sms_err("No registry found.");
return default_mode;
}
if (entry)
return entry->type;
else
- sms_err("%s No registry found.\n", __func__);
+ sms_err("No registry found.");
return -1;
}
if (entry)
entry->mode = mode;
else
- sms_err("%s No registry found.\n", __func__);
+ sms_err("No registry found.");
}
void smscore_registry_settype(char *devpath, enum sms_device_type_st type)
if (entry)
entry->type = type;
else
- sms_err("%s No registry found.\n", __func__);
+ sms_err("No registry found.");
}
struct smscore_buffer_t *cb =
kmalloc(sizeof(struct smscore_buffer_t), GFP_KERNEL);
if (!cb) {
- sms_info("%s kmalloc(...) failed\n", __func__);
+ sms_info("kmalloc(...) failed");
return NULL;
}
dev = kzalloc(sizeof(struct smscore_device_t), GFP_KERNEL);
if (!dev) {
- sms_info("%s kzalloc(...) failed\n", __func__);
+ sms_info("kzalloc(...) failed");
return -ENOMEM;
}
smscore_putbuffer(dev, cb);
}
- sms_info("%s allocated %d buffers\n",
- __func__, dev->num_buffers);
+ sms_info("allocated %d buffers", dev->num_buffers);
dev->mode = DEVICE_MODE_NONE;
dev->context = params->context;
*coredev = dev;
- sms_info("%s device %p created\n", __func__, dev);
+ sms_info("device %p created", dev);
return 0;
}
int rc = smscore_set_device_mode(
coredev, smscore_registry_getmode(coredev->devpath));
if (rc < 0) {
- sms_info("%s set device mode faile , rc %d\n",
- __func__, rc);
+ sms_info("set device mode faile , rc %d", rc);
return rc;
}
rc = smscore_notify_callbacks(coredev, coredev->device, 1);
- sms_info("%s device %p started, rc %d\n",
- __func__, coredev, rc);
+ sms_info("device %p started, rc %d", coredev, rc);
kmutex_unlock(&g_smscore_deviceslock);
{
int rc = coredev->sendrequest_handler(coredev->context, buffer, size);
if (rc < 0) {
- sms_info("%s sendrequest returned error %d\n",
- __func__, rc);
+ sms_info("sendrequest returned error %d", rc);
return rc;
}
u8 *payload = firmware->Payload;
int rc = 0;
- sms_info("%s loading FW to addr 0x%x size %d\n",
- __func__, mem_address, firmware->Length);
+ sms_info("loading FW to addr 0x%x size %d",
+ mem_address, firmware->Length);
if (coredev->preload_handler) {
rc = coredev->preload_handler(coredev->context);
if (rc < 0)
return -ENOMEM;
if (coredev->mode != DEVICE_MODE_NONE) {
- PDEBUG("Sending reload command\n");
+ PDEBUG("Sending reload command");
SMS_INIT_MSG(msg, MSG_SW_RELOAD_START_REQ,
sizeof(struct SmsMsgHdr_ST));
rc = smscore_sendrequest_and_wait(coredev, msg,
msleep(500);
}
- sms_debug("%s rc=%d, postload=%p \n", __func__, rc,
+ sms_debug("rc=%d, postload=%p ", rc,
coredev->postload_handler);
kfree(msg);
rc = request_firmware(&fw, filename, coredev->device);
if (rc < 0) {
- sms_info("%s failed to open \"%s\"\n",
- __func__, filename);
+ sms_info("failed to open \"%s\"", filename);
return rc;
}
- sms_info("%s read FW %s, size=%d\"\n", __func__,
- filename, fw->size);
+ sms_info("read FW %s, size=%d\"", filename, fw->size);
fw_buffer = kmalloc(ALIGN(fw->size, SMS_ALLOC_ALIGNMENT),
GFP_KERNEL | GFP_DMA);
if (fw_buffer) {
kfree(fw_buffer);
} else {
- sms_info("%s failed to allocate firmware buffer\n",
- __func__);
+ sms_info("failed to allocate firmware buffer");
rc = -ENOMEM;
}
int smscore_load_firmware_from_buffer(struct smscore_device_t *coredev,
u8 *buffer, int size, int new_mode)
{
- PERROR("Feature not implemented yet\n");
+ PERROR("Feature not implemented yet");
return -EFAULT;
}
if (num_buffers == coredev->num_buffers)
break;
if (++retry > 10) {
- sms_info("%s exiting although "
- "not all buffers released.\n", __func__);
+ sms_info("exiting although "
+ "not all buffers released.");
break;
}
- sms_info("%s waiting for %d buffer(s)\n", __func__,
+ sms_info("waiting for %d buffer(s)",
coredev->num_buffers - num_buffers);
msleep(100);
}
- sms_info("%s freed %d buffers\n", __func__, num_buffers);
+ sms_info("freed %d buffers", num_buffers);
if (coredev->common_buffer)
dma_free_coherent(NULL, coredev->common_buffer_size,
kmutex_unlock(&g_smscore_deviceslock);
- sms_info("%s device %p destroyed\n", __func__, coredev);
+ sms_info("device %p destroyed", coredev);
}
int smscore_detect_mode(struct smscore_device_t *coredev)
rc = smscore_sendrequest_and_wait(coredev, msg, msg->msgLength,
&coredev->version_ex_done);
if (rc == -ETIME) {
- sms_err("%s: MSG_SMS_GET_VERSION_EX_REQ "
- "failed first try\n", __func__);
+ sms_err("MSG_SMS_GET_VERSION_EX_REQ failed first try");
if (wait_for_completion_timeout(&coredev->resume_done,
msecs_to_jiffies(5000))) {
coredev, msg, msg->msgLength,
&coredev->version_ex_done);
if (rc < 0)
- sms_err("%s: "
- "MSG_SMS_GET_VERSION_EX_REQ failed "
- "second try, rc %d\n", __func__, rc);
+ sms_err("MSG_SMS_GET_VERSION_EX_REQ failed "
+ "second try, rc %d", rc);
} else
rc = -ETIME;
}
int rc = 0;
enum sms_device_type_st type;
- PDEBUG("set device mode to %d\n", mode);
+ PDEBUG("set device mode to %d", mode);
if (coredev->device_flags & SMS_DEVICE_FAMILY2) {
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_RAW_TUNER) {
- sms_info("%s invalid mode specified %d\n",
- __func__, mode);
+ sms_info("invalid mode specified %d", mode);
return -EINVAL;
}
if (!(coredev->device_flags & SMS_DEVICE_NOT_READY)) {
rc = smscore_detect_mode(coredev);
if (rc < 0) {
- sms_info("%s mode detect failed %d\n",
- __func__, rc);
+ sms_info("mode detect failed %d", rc);
return rc;
}
}
if (coredev->mode == mode) {
- sms_info("%s device mode %d already set\n",
- __func__, mode);
+ sms_info("device mode %d already set", mode);
return 0;
}
rc = smscore_load_firmware_from_file(
coredev, smscore_fw_lkup[mode][type], NULL);
if (rc < 0) {
- sms_info("%s load firmware "
- "failed %d\n", __func__, rc);
+ sms_info("load firmware "
+ "failed %d", rc);
return rc;
}
} else
- sms_info("%s mode %d supported by running "
- "firmware\n", __func__, mode);
+ sms_info("mode %d supported by running "
+ "firmware", mode);
buffer = kmalloc(sizeof(struct SmsMsgData_ST) +
SMS_DMA_ALIGNMENT, GFP_KERNEL | GFP_DMA);
kfree(buffer);
} else {
- sms_info("%s Could not allocate buffer for "
- "init device message.\n", __func__);
+ sms_info("Could not allocate buffer for "
+ "init device message.");
rc = -ENOMEM;
}
} else {
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) {
- sms_info("%s invalid mode specified %d\n",
- __func__, mode);
+ sms_info("invalid mode specified %d", mode);
return -EINVAL;
}
}
if (rc != 0)
- sms_info("%s return error code %d.\n", __func__, rc);
+ sms_info("return error code %d.", rc);
return rc;
}
last_sample_time = time_now;
if (time_now - last_sample_time > 10000) {
- sms_debug("\n%s data rate %d bytes/secs\n", __func__,
+ sms_debug("\ndata rate %d bytes/secs",
(int)((data_total * 1000) /
(time_now - last_sample_time)));
{
struct SmsVersionRes_ST *ver =
(struct SmsVersionRes_ST *) phdr;
- sms_debug("%s: MSG_SMS_GET_VERSION_EX_RES "
- "id %d prots 0x%x ver %d.%d\n", __func__,
+ sms_debug("MSG_SMS_GET_VERSION_EX_RES "
+ "id %d prots 0x%x ver %d.%d",
ver->FirmwareId, ver->SupportedProtocols,
ver->RomVersionMajor, ver->RomVersionMinor);
break;
}
case MSG_SMS_INIT_DEVICE_RES:
- sms_debug("%s: MSG_SMS_INIT_DEVICE_RES\n",
- __func__);
+ sms_debug("MSG_SMS_INIT_DEVICE_RES");
complete(&coredev->init_device_done);
break;
case MSG_SW_RELOAD_START_RES:
- sms_debug("%s: MSG_SW_RELOAD_START_RES\n",
- __func__);
+ sms_debug("MSG_SW_RELOAD_START_RES");
complete(&coredev->reload_start_done);
break;
case MSG_SMS_DATA_DOWNLOAD_RES:
complete(&coredev->data_download_done);
break;
case MSG_SW_RELOAD_EXEC_RES:
- sms_debug("%s: MSG_SW_RELOAD_EXEC_RES\n",
- __func__);
+ sms_debug("MSG_SW_RELOAD_EXEC_RES");
break;
case MSG_SMS_SWDOWNLOAD_TRIGGER_RES:
- sms_debug("%s: MSG_SMS_SWDOWNLOAD_TRIGGER_RES\n",
- __func__);
+ sms_debug("MSG_SMS_SWDOWNLOAD_TRIGGER_RES");
complete(&coredev->trigger_done);
break;
case MSG_SMS_SLEEP_RESUME_COMP_IND:
struct smscore_client_t *registered_client;
if (!client) {
- PERROR("bad parameter.\n");
+ PERROR("bad parameter.");
return -EFAULT;
}
registered_client = smscore_find_client(coredev, data_type, id);
return 0;
if (registered_client) {
- PERROR("The msg ID already registered to another client.\n");
+ PERROR("The msg ID already registered to another client.");
return -EEXIST;
}
listentry = kzalloc(sizeof(struct smscore_idlist_t), GFP_KERNEL);
if (!listentry) {
- PERROR("Can't allocate memory for client id.\n");
+ PERROR("Can't allocate memory for client id.");
return -ENOMEM;
}
listentry->id = id;
/* check that no other channel with same parameters exists */
if (smscore_find_client(coredev, params->data_type,
params->initial_id)) {
- PERROR("Client already exist.\n");
+ PERROR("Client already exist.");
return -EEXIST;
}
newclient = kzalloc(sizeof(struct smscore_client_t), GFP_KERNEL);
if (!newclient) {
- PERROR("Failed to allocate memory for client.\n");
+ PERROR("Failed to allocate memory for client.");
return -ENOMEM;
}
smscore_validate_client(coredev, newclient, params->data_type,
params->initial_id);
*client = newclient;
- PDEBUG("%p %d %d\n", params->context, params->data_type,
+ PDEBUG("%p %d %d", params->context, params->data_type,
params->initial_id);
return 0;
kfree(identry);
}
- sms_info("%s %p\n", __func__, client->context);
+ sms_info("%p", client->context);
list_del(&client->entry);
kfree(client);
int rc;
if (client == NULL) {
- sms_err("%s Got NULL client\n", __func__);
+ sms_err("Got NULL client");
return -EINVAL;
}
/* check that no other channel with same id exists */
if (coredev == NULL) {
- sms_err("%s Got NULL coredev\n", __func__);
+ sms_err("Got NULL coredev");
return -EINVAL;
}
if (!(vma->vm_flags & (VM_READ | VM_SHARED)) ||
(vma->vm_flags & VM_WRITE)) {
- sms_info("%s invalid vm flags\n", __func__);
+ sms_info("invalid vm flags");
return -EINVAL;
}
if ((end - start) != size) {
- sms_info("%s invalid size %d expected %d\n",
- __func__, (int)(end - start), (int) size);
+ sms_info("invalid size %d expected %d",
+ (int)(end - start), (int) size);
return -EINVAL;
}
if (remap_pfn_range(vma, start,
coredev->common_buffer_phys >> PAGE_SHIFT,
size, pgprot_noncached(vma->vm_page_prot))) {
- sms_info("%s remap_page_range failed\n", __func__);
+ sms_info("remap_page_range failed");
return -EAGAIN;
}
/* DVB Register */
rc = smsdvb_register();
- sms_info("%s, rc %d\n", __func__, rc);
+ sms_debug("rc %d", rc);
return rc;
}
/* Unregister USB */
smsusb_unregister();
- sms_info("%s\n", __func__);
+ sms_debug("");
}
module_init(smscore_module_init);
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;
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;
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;
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) {
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,
return 0;
if (smscore_get_device_mode(coredev) != 4) {
- 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;
}
client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL);
if (!client) {
- sms_info("%s kmalloc() failed\n", __func__);
+ sms_info("kmalloc() failed");
return -ENOMEM;
}
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;
}
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;
}
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;
}
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;
}
rc = smscore_register_client(coredev, ¶ms, &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;
}
kmutex_unlock(&g_smsdvb_clientslock);
- sms_info("%s success\n", __func__);
+ sms_info("success");
return 0;
rc = smscore_register_hotplug(smsdvb_hotplug);
- sms_info("%s\n", __func__);
+ sms_debug("");
return rc;
}
struct smsusb_device_t *dev = surb->dev;
if (urb->status < 0) {
- sms_info("%s error, urb status %d, %d bytes\n",
- __func__, urb->status, urb->actual_length);
+ sms_info("error, urb status %d, %d bytes",
+ urb->status, urb->actual_length);
return;
}
/* sanity check */
if (((int) phdr->msgLength +
surb->cb->offset) > urb->actual_length) {
- sms_info("%s: invalid response "
+ sms_info("invalid response "
"msglen %d offset %d "
- "size %d\n", __func__,
+ "size %d",
phdr->msgLength,
surb->cb->offset,
urb->actual_length);
smscore_onresponse(dev->coredev, surb->cb);
surb->cb = NULL;
} else {
- sms_info("%s invalid response "
- "msglen %d actual %d\n", __func__,
+ sms_info("invalid response "
+ "msglen %d actual %d",
phdr->msgLength, urb->actual_length);
}
}
if (!surb->cb) {
surb->cb = smscore_getbuffer(dev->coredev);
if (!surb->cb) {
- sms_info("%s smscore_getbuffer(...) "
- "returned NULL\n", __func__);
+ sms_info("smscore_getbuffer(...) "
+ "returned NULL");
return -ENOMEM;
}
}
for (i = 0; i < MAX_URBS; i++) {
rc = smsusb_submit_urb(dev, &dev->surbs[i]);
if (rc < 0) {
- sms_info("%s smsusb_submit_urb(...) "
- "failed\n", __func__);
+ sms_info("smsusb_submit_urb(...) "
+ "failed");
smsusb_stop_streaming(dev);
break;
}
int rc, dummy;
if (id < DEVICE_MODE_DVBT || id > DEVICE_MODE_DVBT_BDA) {
- sms_info("%s invalid firmware id specified %d\n",
- __func__, id);
+ sms_info("invalid firmware id specified %d", id);
return -EINVAL;
}
rc = request_firmware(&fw, smsusb1_fw_lkup[id], &udev->dev);
if (rc < 0) {
- sms_info("%s failed to open \"%s\" mode %d\n",
- __func__, smsusb1_fw_lkup[id], id);
+ sms_info("failed to open \"%s\" mode %d",
+ smsusb1_fw_lkup[id], id);
return rc;
}
rc = usb_bulk_msg(udev, usb_sndbulkpipe(udev, 2),
fw_buffer, fw->size, &dummy, 1000);
- sms_info("%s: sent %d(%d) bytes, rc %d\n",
- __func__, fw->size, dummy, rc);
+ sms_info("sent %d(%d) bytes, rc %d", fw->size, dummy, rc);
kfree(fw_buffer);
} else {
- sms_info("failed to allocate firmware buffer\n");
+ sms_info("failed to allocate firmware buffer");
rc = -ENOMEM;
}
if (!product_string) {
product_string = "none";
- sms_err("%s product string not found\n", __func__);
+ sms_err("product string not found");
} else if (strstr(product_string, "DVBH"))
*mode = 1;
else if (strstr(product_string, "BDA"))
else if (strstr(product_string, "TDMB"))
*mode = 2;
- sms_info("%s: %d \"%s\"\n", __func__, *mode, product_string);
+ sms_info("%d \"%s\"", *mode, product_string);
}
int smsusb1_setmode(void *context, int mode)
sizeof(struct SmsMsgHdr_ST), 0 };
if (mode < DEVICE_MODE_DVBT || mode > DEVICE_MODE_DVBT_BDA) {
- sms_info("%s invalid firmware id specified %d\n",
- __func__, mode);
+ sms_info("invalid firmware id specified %d", mode);
return -EINVAL;
}
kfree(dev);
- sms_info("%s device %p destroyed\n", __func__, dev);
+ sms_info("device %p destroyed", dev);
}
usb_set_intfdata(intf, NULL);
/* create device object */
dev = kzalloc(sizeof(struct smsusb_device_t), GFP_KERNEL);
if (!dev) {
- sms_info("%s kzalloc(sizeof(struct smsusb_device_t) "
- "failed\n", __func__);
+ sms_info("kzalloc(sizeof(struct smsusb_device_t) "
+ "failed");
return -ENOMEM;
}
params.setmode_handler = smsusb1_setmode;
params.detectmode_handler = smsusb1_detectmode;
params.device_type = SMS_STELLAR;
- sms_info("%s stellar device found\n", __func__);
+ sms_info("stellar device found");
break;
default:
switch (board->type) {
case SMS_NOVA_A0:
params.device_type = SMS_NOVA_A0;
- sms_info("%s nova A0 found\n", __func__);
+ sms_info("nova A0 found");
break;
case SMS_NOVA_B0:
params.device_type = SMS_NOVA_B0;
- sms_info("%s nova B0 found\n", __func__);
+ sms_info("nova B0 found");
break;
case SMS_VEGA:
params.device_type = SMS_VEGA;
- sms_info("%s Vega found\n", __func__);
+ sms_info("Vega found");
break;
default:
- sms_err("%s Unspecified sms device type!\n",
- __func__);
+ sms_err("Unspecified sms device type!");
}
dev->buffer_size = USB2_BUFFER_SIZE;
/* register in smscore */
rc = smscore_register_device(¶ms, &dev->coredev);
if (rc < 0) {
- sms_info("%s smscore_register_device(...) failed, "
- "rc %d\n", __func__, rc);
+ sms_info("smscore_register_device(...) failed, "
+ "rc %d", rc);
smsusb_term_device(intf);
return rc;
}
usb_init_urb(&dev->surbs[i].urb);
}
- sms_info("%s smsusb_start_streaming(...).\n", __func__);
+ sms_info("smsusb_start_streaming(...).");
rc = smsusb_start_streaming(dev);
if (rc < 0) {
- sms_info("%s smsusb_start_streaming(...) failed\n",
- __func__);
+ sms_info("smsusb_start_streaming(...) failed");
smsusb_term_device(intf);
return rc;
}
rc = smscore_start_device(dev->coredev);
if (rc < 0) {
- sms_info("%s smscore_start_device(...) failed\n",
- __func__);
+ sms_info("smscore_start_device(...) failed");
smsusb_term_device(intf);
return rc;
}
- sms_info("%s device %p created\n", __func__, dev);
+ sms_info("device %p created", dev);
return rc;
}
rc = usb_set_interface(
udev, intf->cur_altsetting->desc.bInterfaceNumber, 0);
if (rc < 0) {
- sms_info("%s usb_set_interface failed, "
- "rc %d\n", __func__, rc);
+ sms_info("usb_set_interface failed, "
+ "rc %d", rc);
return rc;
}
}
- sms_info("smsusb_probe %d\n",
+ sms_info("smsusb_probe %d",
intf->cur_altsetting->desc.bInterfaceNumber);
for (i = 0; i < intf->cur_altsetting->desc.bNumEndpoints; i++)
- sms_info("endpoint %d %02x %02x %d\n", i,
+ sms_info("endpoint %d %02x %02x %d", i,
intf->cur_altsetting->endpoint[i].desc.bEndpointAddress,
intf->cur_altsetting->endpoint[i].desc.bmAttributes,
intf->cur_altsetting->endpoint[i].desc.wMaxPacketSize);
if ((udev->actconfig->desc.bNumInterfaces == 2) &&
(intf->cur_altsetting->desc.bInterfaceNumber == 0)) {
- sms_info("rom interface 0 is not used\n");
+ sms_info("rom interface 0 is not used");
return -ENODEV;
}
if (intf->cur_altsetting->desc.bInterfaceNumber == 1) {
snprintf(devpath, sizeof(devpath), "usb\\%d-%s",
udev->bus->busnum, udev->devpath);
- sms_info("stellar device was found.\n");
+ sms_info("stellar device was found.");
return smsusb1_load_firmware(
udev, smscore_registry_getmode(devpath));
}
rc = smsusb_init_device(intf, id->driver_info);
- sms_info("%s rc %d\n", __func__, rc);
+ sms_info("rc %d", rc);
return rc;
}
{
int rc = usb_register(&smsusb_driver);
if (rc)
- sms_info("usb_register failed. Error number %d\n", rc);
+ sms_info("usb_register failed. Error number %d", rc);
- sms_info("%s\n", __func__);
+ sms_debug("");
return rc;
}
void smsusb_unregister(void)
{
- sms_debug("%s\n", __func__);
+ sms_debug("");
/* Regular USB Cleanup */
usb_deregister(&smsusb_driver);
}