|
From: Zdenek S. <st...@us...> - 2016-03-14 20:21:41
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "ipmitool".
The branch, master has been updated
via d65658aaccf0831b1c42d455e02350185f5b173e (commit)
from 4648843f81645dc09f88af78ea218b7503806907 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d65658aaccf0831b1c42d455e02350185f5b173e
Author: Zdenek Styblik <st...@tu...>
Date: Mon Mar 14 21:19:52 2016 +0100
Remove #if 0 code aka not-compiled-in
Commit removes code which resides in `#if 0` block. Why? Because this code
doesn't get compiled in, so there is no reason for it to be around.
diff --git a/lib/ipmi_chassis.c b/lib/ipmi_chassis.c
index 50e8c50..fb7c27d 100644
--- a/lib/ipmi_chassis.c
+++ b/lib/ipmi_chassis.c
@@ -112,12 +112,6 @@ ipmi_chassis_power_control(struct ipmi_intf * intf, uint8_t ctl)
printf("Chassis Power Control: %s\n",
val2str(ctl, ipmi_chassis_power_control_vals));
-
-#if 0 /* this can cause sessions to hang around after power commands */
- /* sessions often get lost when changing chassis power */
- intf->abort = 1;
-#endif
-
return 0;
}
diff --git a/lib/ipmi_dcmi.c b/lib/ipmi_dcmi.c
index ff5d2d1..2cfe48f 100755
--- a/lib/ipmi_dcmi.c
+++ b/lib/ipmi_dcmi.c
@@ -1769,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
*/
diff --git a/lib/ipmi_fru.c b/lib/ipmi_fru.c
index 2748ae6..dda89e9 100644
--- a/lib/ipmi_fru.c
+++ b/lib/ipmi_fru.c
@@ -5141,31 +5141,6 @@ ipmi_fru_set_field_string_rebuild(struct ipmi_intf * intf, uint8_t fruId,
#ifdef DBG_RESIZE_FRU
printf("Calculate New Checksum: %x\n", (0 - cksum));
#endif
-
- /****** ENABLE to show section modified before and after ********/
- #if 0
- printf("Section: ");
- for( counter = 0; counter <old_section_len; counter ++ )
- {
- if((counter %16) == 0)
- {
- printf("\n");
- }
- printf( "%02X ", *(fru_data_old + header_offset + counter) );
- }
- printf("\n");
-
- printf("Section: ");
- for( counter = 0; counter <fru_section_len; counter ++ )
- {
- if((counter %16) == 0)
- {
- printf("\n");
- }
- printf( "%02X ", *(fru_data_new + header_offset + counter) );
- }
- printf("\n");
- #endif
}
else
{
diff --git a/src/plugins/lanplus/lanplus.c b/src/plugins/lanplus/lanplus.c
index 85e27a7..19d6c48 100644
--- a/src/plugins/lanplus/lanplus.c
+++ b/src/plugins/lanplus/lanplus.c
@@ -1401,10 +1401,6 @@ void getIpmiPayloadWireRep(
msg[len++] = IPMI_REMOTE_SWID;
msg[len++] = curr_seq << 2;
msg[len++] = 0x34; /* Send Message rqst */
- #if 0 /* From lan.c example */
- entry->req.msg.target_cmd = entry->req.msg.cmd; /* Save target command */
- entry->req.msg.cmd = 0x34; /* (fixup request entry) */
- #endif
msg[len++] = (0x40|intf->target_channel); /* Track request*/
payload->payload_length += 7;
-----------------------------------------------------------------------
Summary of changes:
lib/ipmi_chassis.c | 6 ------
lib/ipmi_dcmi.c | 10 ----------
lib/ipmi_fru.c | 25 -------------------------
src/plugins/lanplus/lanplus.c | 4 ----
4 files changed, 0 insertions(+), 45 deletions(-)
hooks/post-receive
--
ipmitool
|