|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 1/2] xen: add config option to include failing condition in BUG_ON() message
On 14.01.20 16:47, Jan Beulich wrote: On 09.01.2020 14:48, Juergen Gross wrote: I can move it either to xen/Kconfig or in Kconfig.debug out of the "if expert" section if you want. --- a/xen/include/xen/lib.h +++ b/xen/include/xen/lib.h @@ -8,7 +8,12 @@ #include <xen/string.h> #include <asm/bug.h>+#define BUG_ON_VERBOSE(p) do { if (unlikely(p)) BUG_VERBOSE(#p); } while (0)+#ifdef CONFIG_DEBUG_BUGVERBOSE +#define BUG_ON(p) BUG_ON_VERBOSE(p)Looks like this will fail to build on Arm? Also - any particular Uh, shame on me! reason for the introduction of the separate BUG_ON_VERBOSE(), when BUG_ON() could directly use BUG_VERBOSE()? I don't think we want to encourage use of BUG_ON_VERBOSE() elsewhere ... I wanted to offer that option. If you want me to remove it I wouldn't mind. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |