diff options
| author | venki <none@none> | 2006-06-07 03:26:54 -0700 |
|---|---|---|
| committer | venki <none@none> | 2006-06-07 03:26:54 -0700 |
| commit | ce7e4e8267b106cd1f71dc9655b997dcaeca86e9 (patch) | |
| tree | b47d648a394adca68ed0d83ad35ed7ec95b08a88 /usr/src | |
| parent | b250187ecb9698546885f906fc8321a2a399f0e6 (diff) | |
| download | illumos-joyent-ce7e4e8267b106cd1f71dc9655b997dcaeca86e9.tar.gz | |
6335746 Safe limits in 'Front_panel' sensor temperature are incorrect (248...65)
Diffstat (limited to 'usr/src')
| -rw-r--r-- | usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c b/usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c index f749cb6f58..ce36071900 100644 --- a/usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.c +++ b/usr/src/cmd/picl/plugins/sun4u/chicago/envd/piclenvd.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. @@ -1283,9 +1282,10 @@ system_temp_thr(void *args) (wtstamp == 0 || (ct - wtstamp) >= sensor_warning_interval)) { envd_log(LOG_CRIT, ENV_WARNING_MSG, - sensorp->name, sensorp->cur_temp, - sensorp->es->esb_low_warning, - sensorp->es->esb_high_warning); + sensorp->name, sensorp->cur_temp, + (int8_t)sensorp->es->esb_low_warning, + (int8_t)sensorp->es->esb_high_warning); + sensorp->warning_tstamp = ct; } } else if (sensorp->warning_start != 0) @@ -1309,11 +1309,13 @@ system_temp_thr(void *args) * Log error */ sensorp->shutdown_initiated = B_TRUE; + (void) snprintf(msgbuf, sizeof (msgbuf), - ENV_SHUTDOWN_MSG, sensorp->name, - sensorp->cur_temp, - sensorp->es->esb_low_shutdown, - sensorp->es->esb_high_shutdown); + ENV_SHUTDOWN_MSG, sensorp->name, + sensorp->cur_temp, + (int8_t)sensorp->es->esb_low_shutdown, + (int8_t)sensorp->es->esb_high_shutdown); + envd_log(LOG_ALERT, msgbuf); /* |
