summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/stand/libsa/pdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/stand/libsa/pdc.c')
-rw-r--r--sys/arch/hppa/stand/libsa/pdc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hppa/stand/libsa/pdc.c b/sys/arch/hppa/stand/libsa/pdc.c
index ea4939bd915..4f65f6552ac 100644
--- a/sys/arch/hppa/stand/libsa/pdc.c
+++ b/sys/arch/hppa/stand/libsa/pdc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pdc.c,v 1.7 1999/01/25 20:16:07 mickey Exp $ */
+/* $OpenBSD: pdc.c,v 1.8 1999/02/13 04:43:18 mickey Exp $ */
/*
* Copyright (c) 1998 Michael Shalayeff
@@ -234,9 +234,13 @@ iodcstrategy(devdata, rw, blk, size, buf, rsize)
blk - offset, bbuf, BTIOSIZ, BTIOSIZ)) < 0) {
#ifdef DEBUG
if (debug)
- printf("IODC_IO: %d\n", ret);
+ printf("iodc_read(%d,%d): %d\n",
+ blk - offset, BTIOSIZ, ret);
#endif
- return (EIO);
+ if (xfer)
+ break;
+ else
+ return (EIO);
}
if ((ret = pdcbuf[0]) <= 0)
break;