patch-1.3.28 linux/drivers/char/serial.c
Next file: linux/drivers/char/tpqic02.c
Previous file: linux/drivers/char/selection.h
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Sep 18 08:54:08 1995
- Orig file:
v1.3.27/linux/drivers/char/serial.c
- Orig date:
Sun Sep 3 12:26:53 1995
diff -u --recursive --new-file v1.3.27/linux/drivers/char/serial.c linux/drivers/char/serial.c
@@ -204,20 +204,20 @@
static struct semaphore tmp_buf_sem = MUTEX;
static inline int serial_paranoia_check(struct async_struct *info,
- dev_t device, const char *routine)
+ kdev_t device, const char *routine)
{
#ifdef SERIAL_PARANOIA_CHECK
static const char *badmagic =
- "Warning: bad magic number for serial struct (%d, %d) in %s\n";
+ "Warning: bad magic number for serial struct (%s) in %s\n";
static const char *badinfo =
- "Warning: null async_struct for (%d, %d) in %s\n";
+ "Warning: null async_struct for (%s) in %s\n";
if (!info) {
- printk(badinfo, MAJOR(device), MINOR(device), routine);
+ printk(badinfo, kdevname(device), routine);
return 1;
}
if (info->magic != SERIAL_MAGIC) {
- printk(badmagic, MAJOR(device), MINOR(device), routine);
+ printk(badmagic, kdevname(device), routine);
return 1;
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this