Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern physio(9): Include error in KASSERTMSG.
details: https://anonhg.NetBSD.org/src/rev/0fa0d8f325ec
branches: trunk
changeset: 368228:0fa0d8f325ec
user: riastradh <riastradh%NetBSD.org@localhost>
date: Thu Jun 30 01:52:29 2022 +0000
description:
physio(9): Include error in KASSERTMSG.
May help to track down:
https://syzkaller.appspot.com/bug?id=d57553ea3fc65cb7f11df947154795451b0dd3a8
diffstat:
sys/kern/kern_physio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bc0528913030 -r 0fa0d8f325ec sys/kern/kern_physio.c
--- a/sys/kern/kern_physio.c Wed Jun 29 23:15:08 2022 +0000
+++ b/sys/kern/kern_physio.c Thu Jun 30 01:52:29 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_physio.c,v 1.100 2022/03/13 18:37:10 riastradh Exp $ */
+/* $NetBSD: kern_physio.c,v 1.101 2022/06/30 01:52:29 riastradh Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1993
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_physio.c,v 1.100 2022/03/13 18:37:10 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_physio.c,v 1.101 2022/06/30 01:52:29 riastradh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -180,7 +180,7 @@
KASSERT(bp->b_bcount <= todo);
KASSERT(bp->b_resid <= bp->b_bcount);
if (done == todo)
- KASSERT(bp->b_error == 0);
+ KASSERTMSG(bp->b_error == 0, "error=%d", bp->b_error);
#endif /* defined(DIAGNOSTIC) */
workqueue_enqueue(physio_workqueue, &bp->b_work, NULL);
Home |
Main Index |
Thread Index |
Old Index