unsigned int modem = 0;
int len = clen;
- pr_err("%s: %d bytes for tty %d\n", __func__, len, dlci->addr);
+ if (debug & 16)
+ pr_debug("%s: %d bytes for tty %p\n", __func__, len, tty);
if (tty) {
switch (dlci->adaption) {
}
if (gsm->fcs != GOOD_FCS) {
gsm->bad_fcs++;
- pr_err("BAD FCS %02x\n", gsm->fcs);
+ if (debug & 4)
+ pr_debug("BAD FCS %02x\n", gsm->fcs);
return;
}
address = gsm->address >> 1;
gsm->state = GSM_SEARCH;
break;
}
- pr_err("wait for GSM0_SOF, while got 0x%x\n", (u32)c);
+ pr_debug("wait for GSM0_SOF, while got 0x%x\n", (u32)c);
break;
}
}
static int gsm_mux_net_open(struct net_device *net)
{
- pr_err("%s called\n", __func__);
+ pr_debug("%s called\n", __func__);
netif_start_queue(net);
return 0;
}
if (dlci->net) {
dlci->adaption = 1;
dlci->data = gsm_dlci_data;
- pr_err("net_free %d", kfifo_len(dlci->fifo));
unregister_netdev(dlci->net);
free_netdev(dlci->net);
dlci->net = 0;
mux_net->dlci = dlci;
kref_init(&mux_net->ref);
strncpy(nc->if_name, net->name, IFNAMSIZ); /* return net name */
- pr_err("netif done");
return net->ifindex; /* return network index */
error_ret:
switch (cmd) {
case GSMIOC_ENABLE_NET:
- pr_err("GSMIOC_ENABLE_NET");
if (copy_from_user(&nc, (void __user *)arg, sizeof(nc)))
return -EFAULT;
nc.if_name[IFNAMSIZ-1] = '\0';
return -EFAULT;
return index;
case GSMIOC_DISABLE_NET:
- pr_err("GSMIOC_DISABLE_NET");
if (!capable(CAP_NET_ADMIN))
return -EPERM;
gsm_destroy_network(dlci);