Print this page
10886 smatch debug macro cleanup in usr/src/uts

*** 20,29 **** --- 20,31 ---- */ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. * + * Copyright 2019 Joyent, Inc. + * * The "bscbus" driver provides access to the LOMlite2 virtual registers, * so that its clients (children) need not be concerned with the details * of the access mechanism, which in this case is implemented via a * packet-based protocol over a Xbus (similar to ebus) parallel link to the * H8 host interface registers.
*** 402,412 **** (void) strlog(csp->ssp->majornum, csp->ssp->instance, code, SL_TRACE, buf); } } #else /* DEBUG */ ! #define bscbus_trace #endif /* DEBUG */ static struct bscbus_state * bscbus_getstate(dev_info_t *dip, int instance, const char *caller) { --- 404,414 ---- (void) strlog(csp->ssp->majornum, csp->ssp->instance, code, SL_TRACE, buf); } } #else /* DEBUG */ ! #define bscbus_trace(...) (void)(0) #endif /* DEBUG */ static struct bscbus_state * bscbus_getstate(dev_info_t *dip, int instance, const char *caller) {