summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/io/pm.c
diff options
context:
space:
mode:
authorkchow <none@none>2007-03-16 10:14:40 -0700
committerkchow <none@none>2007-03-16 10:14:40 -0700
commit9681b4a118f2414b550ab72cae27eb733d0b15f3 (patch)
treee20426471b9f52f777a653d71f00b694260a86a1 /usr/src/uts/common/io/pm.c
parent33e2ff10f5d0b798fa5f72e1d4d60a1bf59df16b (diff)
downloadillumos-joyent-9681b4a118f2414b550ab72cae27eb733d0b15f3.tar.gz
6534000 sunpm.o debug logging (PMD macro) contributing to nucleus text overflow problem (fix lint)
Diffstat (limited to 'usr/src/uts/common/io/pm.c')
-rw-r--r--usr/src/uts/common/io/pm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/pm.c b/usr/src/uts/common/io/pm.c
index c46ad7ea0a..d4cb7f0da0 100644
--- a/usr/src/uts/common/io/pm.c
+++ b/usr/src/uts/common/io/pm.c
@@ -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.
*/
@@ -465,7 +465,9 @@ int
pm_start_pm_walk(dev_info_t *dip, void *arg)
{
int cmd = *((int *)arg);
+#ifdef PMDDEBUG
char *cmdstr = pm_decode_cmd(cmd);
+#endif
if (!PM_GET_PM_INFO(dip) || PM_ISBC(dip))
return (DDI_WALK_CONTINUE);
@@ -510,7 +512,9 @@ pm_stop_pm_walk(dev_info_t *dip, void *arg)
{
pm_info_t *info = PM_GET_PM_INFO(dip);
int cmd = *((int *)arg);
+#ifdef PMDDEBUG
char *cmdstr = pm_decode_cmd(cmd);
+#endif
if (!info)
return (DDI_WALK_CONTINUE);