From a923e7f4befb22c1dcef53db9008f4a97ad15c3c Mon Sep 17 00:00:00 2001 From: John Levon Date: Tue, 18 Dec 2018 17:50:40 +0000 Subject: 10099 libfakekernel vpanic() should cast away assfail() Reviewed by: Andy Stormont Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/lib/libfakekernel/common/printf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'usr/src/lib/libfakekernel/common/printf.c') diff --git a/usr/src/lib/libfakekernel/common/printf.c b/usr/src/lib/libfakekernel/common/printf.c index 1cfded9239..c8f459dd8c 100644 --- a/usr/src/lib/libfakekernel/common/printf.c +++ b/usr/src/lib/libfakekernel/common/printf.c @@ -23,6 +23,7 @@ * Copyright (c) 2012 by Delphix. All rights reserved. * Copyright 2013 Nexenta Systems, Inc. All rights reserved. * Copyright 2017 RackTop Systems. + * Copyright (c) 2018, Joyent, Inc. */ #include @@ -115,7 +116,7 @@ vpanic(const char *fmt, va_list adx) /* Call libc`assfail() so that mdb ::status works */ (void) vsnprintf(panicbuf, sizeof (panicbuf), fmt, adx); - assfail(panicbuf, "(panic)", 0); + (void) assfail(panicbuf, "(panic)", 0); abort(); /* avoid "noreturn" warnings */ } -- cgit v1.2.3