#if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT)
#define DBG_CNT(s) printk("(%s): [%x] refc=%d, serc=%d, ttyc=%d -> %s\n", \
- kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
+ cdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
#else
#define DBG_CNT(s)
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
#if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT)
#define DBG_CNT(s) baget_printk("(%s):[%x] refc=%d, serc=%d, ttyc=%d-> %s\n", \
- kdevname(tty->device),(info->flags),serial_refcount,info->count,tty->count,s)
+ cdevname(tty->device),(info->flags),serial_refcount,info->count,tty->count,s)
#else
#define DBG_CNT(s)
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
#if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT)
#define DBG_CNT(s) printk("(%s): [%x] refc=%d, serc=%d, ttyc=%d -> %s\n", \
- kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
+ cdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
#else
#define DBG_CNT(s)
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
"cyc Warning: cyclades_port out of range for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if( (long)info < (long)(&cy_port[0])
|| (long)(&cy_port[NR_PORTS]) < (long)info ){
- printk(badrange, kdevname(device), routine);
+ printk(badrange, cdevname(device), routine);
return 1;
}
if (info->magic != CYCLADES_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
#if defined(MODULE) && defined(SERIAL_DEBUG_MCOUNT)
#define DBG_CNT(s) printk("(%s): [%x] refc=%d, serc=%d, ttyc=%d -> %s\n", \
- kdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
+ cdevname(tty->device), (info->flags), serial_refcount,info->count,tty->count,s)
#else
#define DBG_CNT(s)
#endif
"Warning: null esp_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != ESP_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
#if defined(MODULE) && defined(IP2DEBUG_OPEN)
#define DBG_CNT(s) printk(KERN_DEBUG "(%s): [%x] refc=%d, ttyc=%d, modc=%x -> %s\n", \
- kdevname(tty->device),(pCh->flags),ref_count, \
+ cdevname(tty->device),(pCh->flags),ref_count, \
tty->count,/*GET_USE_COUNT(module)*/0,s)
#else
#define DBG_CNT(s)
static const char * badport =
KERN_WARNING "ISICOM: Warning: NULL isicom port for dev %s in %s.\n";
if (!port) {
- printk(badport, kdevname(dev), routine);
+ printk(badport, cdevname(dev), routine);
return 1;
}
if (port->magic != ISICOM_MAGIC) {
- printk(badmagic, kdevname(dev), routine);
+ printk(badmagic, cdevname(dev), routine);
return 1;
}
#endif
"Warning: null mgslpc_info for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != MGSLPC_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
KERN_ERR "rio: Warning: null rio port for device %s in %s\n";
if (!port) {
- printk (badinfo, kdevname(device), routine);
+ printk (badinfo, cdevname(device), routine);
return 1;
}
if (port->magic != RIO_MAGIC) {
- printk (badmagic, kdevname(device), routine);
+ printk (badmagic, cdevname(device), routine);
return 1;
}
"rc: Warning: null riscom port for device %s in %s\n";
if (!port) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (port->magic != RISCOM8_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
KERN_ERR "sx: Warning: null specialix port for device %s in %s\n";
if (!port) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (port->magic != SPECIALIX_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
KERN_ERR "sx: Warning: null sx port for device %s in %s\n";
if (!port) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (port->magic != SX_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
"Warning: null mgsl_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != MGSL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
"Warning: null synclinkmp_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != MGSL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
if (TP_DIAGS(dev)) {
- printk("qic02_tape_open: dev=%s, flags=%x ", kdevname(dev), flags);
+ printk("qic02_tape_open: dev=%s, flags=%x ", cdevname(dev), flags);
}
if (minor(dev) == 255) { /* special case for resetting */
kdev_t dev = inode->i_rdev;
if (TP_DIAGS(dev)) {
- printk("qic02_tape_release: dev=%s\n", kdevname(dev));
+ printk("qic02_tape_release: dev=%s\n", cdevname(dev));
}
if (status_zombie == NO) { /* don't rewind in zombie mode */
"Warning: null TTY for (%s) in %s\n";
if (!tty) {
- printk(badtty, kdevname(device), routine);
+ printk(badtty, cdevname(device), routine);
return 1;
}
if (tty->magic != TTY_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
if (tty->count != count) {
printk(KERN_WARNING "Warning: dev (%s) tty->count(%d) "
"!= #fd's(%d) in %s\n",
- kdevname(tty->device), tty->count, count, routine);
+ cdevname(tty->device), tty->count, count, routine);
return count;
}
#endif
#ifdef TTY_PARANOIA_CHECK
if (idx < 0 || idx >= tty->driver.num) {
printk(KERN_DEBUG "release_dev: bad idx when trying to "
- "free (%s)\n", kdevname(tty->device));
+ "free (%s)\n", cdevname(tty->device));
return;
}
if (tty != tty->driver.table[idx]) {
printk(KERN_DEBUG "release_dev: driver.table[%d] not tty "
- "for (%s)\n", idx, kdevname(tty->device));
+ "for (%s)\n", idx, cdevname(tty->device));
return;
}
if (tty->termios != tty->driver.termios[idx]) {
printk(KERN_DEBUG "release_dev: driver.termios[%d] not termios "
"for (%s)\n",
- idx, kdevname(tty->device));
+ idx, cdevname(tty->device));
return;
}
if (tty->termios_locked != tty->driver.termios_locked[idx]) {
printk(KERN_DEBUG "release_dev: driver.termios_locked[%d] not "
"termios_locked for (%s)\n",
- idx, kdevname(tty->device));
+ idx, cdevname(tty->device));
return;
}
#endif
if (o_tty != tty->driver.other->table[idx]) {
printk(KERN_DEBUG "release_dev: other->table[%d] "
"not o_tty for (%s)\n",
- idx, kdevname(tty->device));
+ idx, cdevname(tty->device));
return;
}
if (o_tty->termios != tty->driver.other->termios[idx]) {
printk(KERN_DEBUG "release_dev: other->termios[%d] "
"not o_termios for (%s)\n",
- idx, kdevname(tty->device));
+ idx, cdevname(tty->device));
return;
}
if (o_tty->termios_locked !=
tty->driver.other->termios_locked[idx]) {
printk(KERN_DEBUG "release_dev: other->termios_locked["
"%d] not o_termios_locked for (%s)\n",
- idx, kdevname(tty->device));
+ idx, cdevname(tty->device));
return;
}
if (o_tty->link != tty) {
KERN_DEBUG "aurora: Warning: null aurora port for device %s in %s\n";
if (!port) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (port->magic != AURORA_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif
"Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, kdevname(device), routine);
+ printk(badinfo, cdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, kdevname(device), routine);
+ printk(badmagic, cdevname(device), routine);
return 1;
}
#endif