set_bit(TTY_DO_WRITE_WAKEUP, &elm->tty->flags);
actual = elm->tty->ops->write(elm->tty, elm->txbuf, len);
if (actual < 0) {
- pr_err("Failed to write to tty for %s.\n", elm->dev->name);
+ netdev_err(elm->dev, "Failed to write to tty %s.\n", elm->tty->name);
elm327_hw_failure(elm);
}
elm->next_init_cmd++;
if (!(*elm->next_init_cmd)) {
clear_bit(ELM_TODO_INIT, &elm->cmds_todo);
- pr_info("%s: Initialization finished.\n", elm->dev->name);
+ netdev_info(elm->dev, "Initialization finished.\n");
}
/* Some chips are unreliable and need extra time after
goto out;
if (!netif_running(dev)) {
- pr_warn("%s: xmit: iface is down\n", dev->name);
+ netdev_warn(elm->dev, "xmit: iface is down.\n");
goto out;
}
actual = elm->tty->ops->write(elm->tty, elm->txhead, elm->txleft);
if (actual < 0) {
- pr_err("Failed to write to tty for %s.\n", elm->dev->name);
+ netdev_err(elm->dev, "Failed to write to tty %s.\n", elm->tty->name);
elm327_hw_failure(elm);
}