Print this page
10132 smatch fixes for MDB
Reviewed by: Andy Fiddaman <andy@omniosce.org>
@@ -21,10 +21,13 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
#include <sys/mdb_modapi.h>
#include <sys/mutex.h>
#include <sys/modctl.h>
#include <time.h>
@@ -1107,11 +1110,11 @@
if (pktstart > pktend) {
return (DCMD_USAGE);
}
- if (logq.il_flags & FC_TRACE_LOGQ_V2 != 0) {
+ if ((logq.il_flags & FC_TRACE_LOGQ_V2) != 0) {
rval = fc_dump_logmsg((fc_trace_dmsg_t *)logq.il_msgh, pktstart,
pktend, &printed);
} else {
rval = fc_dump_old_logmsg((fc_trace_dmsgv1_t *)logq.il_msgh,
pktstart, pktend, &printed);