Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/ata add debug printf if we fail to obtain xfe...
details: https://anonhg.NetBSD.org/src/rev/b999741bd69f
branches: jdolecek-ncq
changeset: 352689:b999741bd69f
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Fri Jun 23 23:45:09 2017 +0000
description:
add debug printf if we fail to obtain xfer in wddump()
diffstat:
sys/dev/ata/wd.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r 802c5cb610d8 -r b999741bd69f sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c Fri Jun 23 22:11:13 2017 +0000
+++ b/sys/dev/ata/wd.c Fri Jun 23 23:45:09 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wd.c,v 1.428.2.21 2017/06/23 22:11:13 jdolecek Exp $ */
+/* $NetBSD: wd.c,v 1.428.2.22 2017/06/23 23:45:09 jdolecek Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -54,7 +54,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.428.2.21 2017/06/23 22:11:13 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.428.2.22 2017/06/23 23:45:09 jdolecek Exp $");
#include "opt_ata.h"
@@ -1654,8 +1654,10 @@
}
xfer = ata_get_xfer_ext(wd->drvp->chnl_softc, false, 0);
- if (xfer == NULL)
+ if (xfer == NULL) {
+ printf("%s: no xfer\n", __func__);
return EAGAIN;
+ }
xfer->c_bio.blkno = blkno;
xfer->c_bio.flags = ATA_POLL;
Home |
Main Index |
Thread Index |
Old Index