summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbui <none@none>2008-04-09 21:39:26 -0700
committeranbui <none@none>2008-04-09 21:39:26 -0700
commit31925ed2254d4e4e9ce3632df5ee99a1d9b3294c (patch)
treed15e049e24787ab32413ab7b3387229c9aa7acbd
parent5164839fa87447c0a1186035041427886a572d29 (diff)
downloadillumos-gate-31925ed2254d4e4e9ce3632df5ee99a1d9b3294c.tar.gz
5006352 picld core dumps due to out of order syslog arguments
-rw-r--r--usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c b/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c
index 2cb5433103..2dd40aea7f 100644
--- a/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c
+++ b/usr/src/cmd/picl/plugins/sun4u/psvc/psvcpolicy/psvcpolicy.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -18,10 +17,11 @@
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
- */
-/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ *
+ *
+ * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
*/
#pragma ident "%Z%%M% %I% %E% SMI"
@@ -1264,8 +1264,8 @@ device_temp_check(psvc_opaque_t hdlp, char *fan_id, int32_t *hot_device)
if (errno == ENODEV) {
temp = 0;
} else {
- syslog(LOG_ERR, GET_SENSOR_FAILED_MSG, errno,
- sensor_id);
+ syslog(LOG_ERR, GET_SENSOR_FAILED_MSG,
+ sensor_id, errno);
return (err);
}
}