Mercurial > illumos > illumos-gate
changeset 3829:b969fce2e86f
6534000 sunpm.o debug logging (PMD macro) contributing to nucleus text overflow problem
author | kchow |
---|---|
date | Thu, 15 Mar 2007 14:22:21 -0700 |
parents | ab5910e1f24a |
children | 93463dad13f1 |
files | usr/src/uts/common/sys/epm.h |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/common/sys/epm.h Thu Mar 15 14:07:33 2007 -0700 +++ b/usr/src/uts/common/sys/epm.h Thu Mar 15 14:22:21 2007 -0700 @@ -19,7 +19,7 @@ * CDDL HEADER END */ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -630,11 +630,15 @@ /*PRINTFLIKE1*/ extern void pm_log(const char *fmt, ...) __KPRINTFLIKE(1); +#ifdef PMDDEBUG #define PMD(level, arglist) { \ if (pm_debug & (level)) { \ pm_log arglist; \ } \ } +#else +#define PMD(level, arglist) ((void)0); +#endif #else #define PMD(level, arglist)