| 46 | | fmtValu_0 |
| 47 | | (const double values[], int alarm, int beep) { |
| 48 | | sprintf (buff, "%.0f", values[0]); |
| 49 | | return fmtExtra (alarm, beep); |
| 50 | | } |
| 51 | | |
| 52 | | static const char * |
| 53 | | fmtTemps_0 |
| 54 | | (const double values[], int alarm, int beep) { |
| 55 | | sprintf (buff, "%.0f C (limit = %.0f C, hysteresis = %.0f C)", values[0], values[1], values[2]); |
| 56 | | return fmtExtra (alarm, beep); |
| 57 | | } |
| 58 | | |
| 59 | | static const char * |
| 60 | | fmtTemps_1_0 |
| 61 | | (const double values[], int alarm, int beep) { |
| 62 | | sprintf (buff, "%.1f C (limit = %.0f C, hysteresis = %.0f C)", values[0], values[1], values[2]); |
| 63 | | return fmtExtra (alarm, beep); |
| 64 | | } |
| 65 | | |
| 66 | | static const char * |
| 126 | | return fmtExtra (alarm, beep); |
| 127 | | } |
| 128 | | |
| 129 | | static const char * |
| 130 | | fmtMHz_2 |
| 131 | | (const double values[], int alarm, int beep) { |
| 132 | | sprintf (buff, "%.2f MHz (min = %.2f MHz, max = %.2f MHz)", values[0], values[1], values[2]); |
| 133 | | return fmtExtra (alarm, beep); |
| 134 | | } |
| 135 | | |
| 136 | | static const char * |
| 137 | | fmtChassisIntrusionDetection |
| 138 | | (const double values[], int alarm, int beep) { |
| 139 | | sprintf (buff, "Chassis intrusion detection"); |
| 140 | | return fmtExtra (alarm, beep); |
| 141 | | } |
| 142 | | |
| 143 | | static const char * |
| 144 | | fmtBoardTemperatureInput |
| 145 | | (const double values[], int alarm, int beep) { |
| 146 | | sprintf (buff, "Board temperature input"); /* N.B: "(usually LM75 chips)" */ |