patch-2.1.81 linux/drivers/char/tpqic02.c
Next file: linux/drivers/char/videodev.c
Previous file: linux/drivers/char/pms.c
Back to the patch index
Back to the overall index
- Lines: 46
- Date:
Fri Jan 23 17:38:04 1998
- Orig file:
v2.1.80/linux/drivers/char/tpqic02.c
- Orig date:
Sat Nov 29 10:33:19 1997
diff -u --recursive --new-file v2.1.80/linux/drivers/char/tpqic02.c linux/drivers/char/tpqic02.c
@@ -1766,8 +1766,10 @@
if (TP_DIAGS(current_tape_dev))
/* can't print a ``long long'' (for filp->f_pos), so chop it */
- printk(TPQIC02_NAME ": request READ, minor=%x, buf=%p, count=%lx, pos=%lx, flags=%x\n",
- MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
+ printk(TPQIC02_NAME ": request READ, minor=%x, buf=%p, count=%lx"
+ ", pos=%lx, flags=%x\n",
+ MINOR(dev), buf, (long) count,
+ (unsigned long) filp->f_pos, flags);
if (count % TAPE_BLKSIZE) /* Only allow mod 512 bytes at a time. */
{
@@ -1980,8 +1982,10 @@
if (TP_DIAGS(current_tape_dev))
{
/* can't print a ``long long'' (for filp->f_pos), so chop it */
- printk(TPQIC02_NAME ": request WRITE, minor=%x, buf=%p, count=%lx, pos=%lx, flags=%x\n",
- MINOR(dev), buf, count, (unsigned long) filp->f_pos, flags);
+ printk(TPQIC02_NAME ": request WRITE, minor=%x, buf=%p"
+ ", count=%lx, pos=%lx, flags=%x\n",
+ MINOR(dev), buf,
+ (long) count, (unsigned long) filp->f_pos, flags);
}
if (count % TAPE_BLKSIZE) /* only allow mod 512 bytes at a time */
@@ -2128,7 +2132,9 @@
tpqputs(TPQD_ALWAYS, "write request for <0 bytes");
if (TPQDBG(DEBUG))
{
- printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p, total_bytes_done %lx, count %lx\n", status_bytes_wr, buf, total_bytes_done, count);
+ printk(TPQIC02_NAME ": status_bytes_wr %x, buf %p"
+ ", total_bytes_done %lx, count %lx\n",
+ status_bytes_wr, buf, total_bytes_done, (long) count);
}
return -EINVAL;
} /* qic02_tape_write */
@@ -2865,7 +2871,7 @@
return 0;
} /* qic02_get_resources */
-__initfunc(static int qic02_tape_init(void))
+__initfunc(int qic02_tape_init(void))
{
if (TPSTATSIZE != 6)
{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov