NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/51322: Prevent compiler optimizing out variables used in KASSERTs
The following reply was made to PR kern/51322; it has been noted by GNATS.
From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: kern/51322: Prevent compiler optimizing out variables used in KASSERTs
Date: Thu, 7 Jul 2016 11:58:34 +0200
On Thu, Jul 07, 2016 at 09:55:00AM +0000, coypu%sdf.org@localhost wrote:
> System panicked: kernel diagnostic assertion "err == USBD_NORMAL_COMPLETION" failed: file "/cvs/src/sys/dev/usb/xhci.c", line 2532
Change it to a KASSERTMSG and print out err?
In many places the value does not exactly matter (or is clear from context),
but in asserts like this we should print the value.
Martin
Home |
Main Index |
Thread Index |
Old Index