summaryrefslogtreecommitdiff
path: root/lib/ipmi_dcmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ipmi_dcmi.c')
-rwxr-xr-xlib/ipmi_dcmi.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/lib/ipmi_dcmi.c b/lib/ipmi_dcmi.c
index aeee944..2cfe48f 100755
--- a/lib/ipmi_dcmi.c
+++ b/lib/ipmi_dcmi.c
@@ -36,6 +36,7 @@
* This code conforms to the 1.0 DCMI Specification
* released by Hari Ramachandran of the Intel Corporation
*/
+#define _BSD_SOURCE
#include <stdlib.h>
#include <string.h>
@@ -671,7 +672,7 @@ chk_nm_rsp(struct ipmi_rs * rsp)
* some issue and cannot complete the command
*/
if (rsp == NULL) {
- lprintf(LOG_ERR, "\n No reponse to NM request");
+ lprintf(LOG_ERR, "\n No response to NM request");
return 1;
}
/* if the completion code is greater than zero there was an error. We'll
@@ -1426,7 +1427,7 @@ ipmi_dcmi_getthermalpolicy(struct ipmi_intf * intf, uint8_t entityID,
/* rsp->data[0] is equal to response data byte 2 in spec */
memcpy(&val, rsp->data, sizeof (val));
printf("\n");
- printf(" Persistance flag is: %s\n",
+ printf(" Persistence flag is: %s\n",
((val.exceptionActions & 0x80) ? "set" : "notset"));
printf(" Exception Actions, taken if the Temperature Limit exceeded:\n");
printf(" Hard Power Off system and log event: %s\n",
@@ -1768,16 +1769,6 @@ ipmi_dcmi_pwr_slimit(struct ipmi_intf * intf, const char * option,
uint32_t lvalue = 0;
rsp = ipmi_dcmi_pwr_glimit(intf); /* get the power limit settings */
-# if 0
- {
- unsigned char counter = 0;
- printf("DATA (%d): ", rsp->data_len);
- for(counter = 0; counter < rsp->data_len; counter ++) {
- printf("%02X ", rsp->data[counter]);
- }
- printf("\n");
- }
-# endif
/* rsp can be a null so check response before any operation on it to
* avoid sig segv
*/
@@ -3163,7 +3154,7 @@ ipmi_nm_thresh(struct ipmi_intf * intf, int argc, char **argv)
return -1;
}
if (str2ushort(argv[0], &thresh.thresholds[i++]) < 0) {
- lprintf(LOG_ERR,"threshold value %d count must be a positve integer.\n", i);
+ lprintf(LOG_ERR,"threshold value %d count must be a positive integer.\n", i);
return -1;
}
default: