forked from pool/ipmitool
Accepting request 157918 from systemsmanagement
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/157918 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ipmitool?expand=0&rev=22
This commit is contained in:
commit
78dcfa3749
12
automake-1.13.patch
Normal file
12
automake-1.13.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/configure.in ./configure.in
|
||||||
|
--- ../orig-ipmitool-1.8.12/configure.in 2013-02-28 13:52:11.893152359 +0100
|
||||||
|
+++ ./configure.in 2013-02-28 14:19:51.398619156 +0100
|
||||||
|
@@ -4,7 +4,7 @@
|
||||||
|
AC_INIT([src/ipmitool.c])
|
||||||
|
AC_CANONICAL_SYSTEM
|
||||||
|
AM_INIT_AUTOMAKE([ipmitool], [1.8.12])
|
||||||
|
-AM_CONFIG_HEADER(config.h)
|
||||||
|
+AC_CONFIG_HEADERS(config.h)
|
||||||
|
AC_CONFIG_SRCDIR([src/ipmitool.c])
|
||||||
|
AC_PREREQ(2.50)
|
||||||
|
AC_SUBST(ac_configure_args)
|
@ -1,20 +1,7 @@
|
|||||||
Several compiler warning fixes
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c ./lib/ipmi_ekanalyzer.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c 2012-08-03 19:07:07.000000000 +0200
|
||||||
These were in SUSE distris for quite some time and got
|
+++ ./lib/ipmi_ekanalyzer.c 2013-02-28 13:30:17.885338630 +0100
|
||||||
forwardported from 1.8.10 to 1.8.11.
|
@@ -3025,9 +3025,10 @@
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/ipmi_ekanalyzer.c | 24 ++++++++++++++----------
|
|
||||||
lib/ipmi_fru.c | 3 ++-
|
|
||||||
lib/ipmi_hpmfwupg.c | 8 ++++----
|
|
||||||
3 files changed, 20 insertions(+), 15 deletions(-)
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_ekanalyzer.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|
||||||
@@ -3025,9 +3025,10 @@ ipmi_ek_display_address_table_record( st
|
|
||||||
|
|
||||||
for ( i = 0; i < entries; i++ ){
|
for ( i = 0; i < entries; i++ ){
|
||||||
printf("\tHWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
printf("\tHWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
||||||
@ -28,7 +15,7 @@ Index: ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3148,21 +3149,24 @@ ipmi_ek_display_shelf_ip_connection_reco
|
@@ -3148,21 +3149,24 @@
|
||||||
int offset = START_DATA_OFFSET;
|
int offset = START_DATA_OFFSET;
|
||||||
if (offset > record->header.len){
|
if (offset > record->header.len){
|
||||||
printf(" Shelf Manager IP Address: %d.%d.%d.%d\n",
|
printf(" Shelf Manager IP Address: %d.%d.%d.%d\n",
|
||||||
@ -60,57 +47,16 @@ Index: ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_fru.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_fru.c ./lib/ipmi_fru.c
|
||||||
===================================================================
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_fru.c 2012-08-03 19:07:07.000000000 +0200
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_fru.c
|
+++ ./lib/ipmi_fru.c 2013-02-28 13:33:32.677021926 +0100
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_fru.c
|
@@ -2070,7 +2070,8 @@
|
||||||
@@ -1840,7 +1840,8 @@ static void ipmi_fru_picmg_ext_print(uin
|
|
||||||
|
|
||||||
for (i=0; i<entries; i++) {
|
for (i=0; i<entries; i++) {
|
||||||
printf(" HWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
printf(" HWAddr: 0x%02x - SiteNum: 0x%02x - SiteType: 0x%02x \n",
|
||||||
- fru_data[offset++], fru_data[offset++], fru_data[offset++]);
|
- fru_data[offset++], fru_data[offset++], fru_data[offset++]);
|
||||||
+ fru_data[offset+2], fru_data[offset+1], fru_data[offset+0]);
|
+ fru_data[offset+2], fru_data[offset+1], fru_data[offset+0]);
|
||||||
+ offset += 3;
|
+ offset += 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_hpmfwupg.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_hpmfwupg.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_hpmfwupg.c
|
|
||||||
@@ -1136,7 +1136,7 @@ void HpmDisplayUpgrade( int skip, unsign
|
|
||||||
* Description: This function displays the information about version header
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
-int HpmDisplayVersionHeader(int mode)
|
|
||||||
+void HpmDisplayVersionHeader(int mode)
|
|
||||||
{
|
|
||||||
|
|
||||||
if ( mode & IMAGE_VER)
|
|
||||||
@@ -1162,7 +1162,7 @@ int HpmDisplayVersionHeader(int mode)
|
|
||||||
* Description: This function displays the version of the image and target
|
|
||||||
*
|
|
||||||
*****************************************************************************/
|
|
||||||
-int HpmDisplayVersion(int mode,VERSIONINFO *pVersion)
|
|
||||||
+void HpmDisplayVersion(int mode,VERSIONINFO *pVersion)
|
|
||||||
{
|
|
||||||
char descString[12];
|
|
||||||
memset(&descString,0x00,12);
|
|
||||||
@@ -1233,7 +1233,7 @@ int HpmfwupgTargetCheck(struct ipmi_intf
|
|
||||||
if (rc != HPMFWUPG_SUCCESS)
|
|
||||||
{
|
|
||||||
lprintf(LOG_NOTICE,"Verify whether the Target board is present \n");
|
|
||||||
- return;
|
|
||||||
+ return rc;
|
|
||||||
}
|
|
||||||
|
|
||||||
rc = HpmfwupgGetTargetUpgCapabilities(intf, &targetCapCmd);
|
|
||||||
@@ -3516,7 +3516,7 @@ int ipmi_hpmfwupg_main(struct ipmi_intf
|
|
||||||
if ( (argc == 0) || (strcmp(argv[0], "help") == 0) )
|
|
||||||
{
|
|
||||||
HpmfwupgPrintUsage();
|
|
||||||
- return;
|
|
||||||
+ return rc;
|
|
||||||
}
|
|
||||||
if ( (strcmp(argv[0], "check") == 0) )
|
|
||||||
{
|
|
||||||
|
@ -1,22 +1,7 @@
|
|||||||
Fix security hole -> wrong file permission
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/helper.c ./lib/helper.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/helper.c 2012-08-03 19:07:07.000000000 +0200
|
||||||
Reference:
|
+++ ./lib/helper.c 2013-02-28 13:46:20.139280500 +0100
|
||||||
https://bugzillafiles.novell.org/attachment.cgi?id=206754&t=hMTMCz2m9Q
|
@@ -593,7 +593,6 @@
|
||||||
|
|
||||||
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
||||||
Signed-off-by: Wilken Gottwalt <ajohansson@novell.com>
|
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/helper.c | 1 -
|
|
||||||
src/ipmievd.c | 3 +++
|
|
||||||
2 files changed, 3 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/helper.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/helper.c
|
|
||||||
+++ ipmitool-1.8.11/lib/helper.c
|
|
||||||
@@ -427,7 +427,6 @@ ipmi_start_daemon(struct ipmi_intf *intf
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
chdir("/");
|
chdir("/");
|
||||||
@ -24,11 +9,10 @@ Index: ipmitool-1.8.11/lib/helper.c
|
|||||||
|
|
||||||
for (fd=0; fd<64; fd++) {
|
for (fd=0; fd<64; fd++) {
|
||||||
if (fd != intf->fd)
|
if (fd != intf->fd)
|
||||||
Index: ipmitool-1.8.11/src/ipmievd.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/src/ipmievd.c ./src/ipmievd.c
|
||||||
===================================================================
|
--- ../orig-ipmitool-1.8.12/src/ipmievd.c 2012-05-01 18:59:23.000000000 +0200
|
||||||
--- ipmitool-1.8.11.orig/src/ipmievd.c
|
+++ ./src/ipmievd.c 2013-02-28 13:47:23.777788780 +0100
|
||||||
+++ ipmitool-1.8.11/src/ipmievd.c
|
@@ -691,6 +691,7 @@
|
||||||
@@ -687,6 +687,7 @@ ipmievd_main(struct ipmi_event_intf * ei
|
|
||||||
int i, rc;
|
int i, rc;
|
||||||
int daemon = 1;
|
int daemon = 1;
|
||||||
struct sigaction act;
|
struct sigaction act;
|
||||||
@ -36,13 +20,14 @@ Index: ipmitool-1.8.11/src/ipmievd.c
|
|||||||
|
|
||||||
memset(pidfile, 0, 64);
|
memset(pidfile, 0, 64);
|
||||||
sprintf(pidfile, "%s%d", DEFAULT_PIDFILE, eintf->intf->devnum);
|
sprintf(pidfile, "%s%d", DEFAULT_PIDFILE, eintf->intf->devnum);
|
||||||
@@ -744,7 +745,9 @@ ipmievd_main(struct ipmi_event_intf * ei
|
@@ -752,8 +753,9 @@
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
ipmi_start_daemon(eintf->intf);
|
||||||
|
|
||||||
|
- umask(022);
|
||||||
+ oldumask = umask(022);
|
+ oldumask = umask(022);
|
||||||
fp = ipmi_open_file_write(pidfile);
|
fp = ipmi_open_file_write(pidfile);
|
||||||
+ umask(oldumask);
|
+ umask(oldumask);
|
||||||
if (fp != NULL) {
|
if (fp == NULL) {
|
||||||
fprintf(fp, "%d\n", (int)getpid());
|
/* Failed to get fp on PID file -> exit. */
|
||||||
fclose(fp);
|
log_halt();
|
||||||
|
@ -1,16 +1,7 @@
|
|||||||
Be more verbose when detecting a board mismatch when trying to flash the firmware
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c ./lib/ipmi_fwum.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c 2012-01-21 06:35:49.000000000 +0100
|
||||||
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
+++ ./lib/ipmi_fwum.c 2013-02-28 13:53:34.644417793 +0100
|
||||||
|
@@ -1648,13 +1656,15 @@
|
||||||
---
|
|
||||||
lib/ipmi_fwum.c | 8 ++++++--
|
|
||||||
1 file changed, 6 insertions(+), 2 deletions(-)
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_fwum.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
@@ -1656,13 +1656,15 @@ tKFWUM_Status KfwumValidFirmwareForBoard
|
|
||||||
|
|
||||||
if(boardInfo.iana != firmInfo.iana)
|
if(boardInfo.iana != firmInfo.iana)
|
||||||
{
|
{
|
||||||
@ -28,7 +19,7 @@ Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|||||||
status = KFWUM_STATUS_ERROR;
|
status = KFWUM_STATUS_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1680,6 +1682,8 @@ static void KfwumOutputInfo(tKFWUM_Board
|
@@ -1672,6 +1682,8 @@
|
||||||
{
|
{
|
||||||
printf("Target Board Id : %u\n",boardInfo.boardId);
|
printf("Target Board Id : %u\n",boardInfo.boardId);
|
||||||
printf("Target IANA number : %u\n",boardInfo.iana);
|
printf("Target IANA number : %u\n",boardInfo.iana);
|
||||||
|
@ -1,19 +1,7 @@
|
|||||||
Increase possible file size for FW upgrades and avoid segfaults if still too big
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c ./lib/ipmi_fwum.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c 2012-01-21 06:35:49.000000000 +0100
|
||||||
Also close a file descriptor which gets opened, but never closed, compare with:
|
+++ ./lib/ipmi_fwum.c 2013-02-28 13:39:10.666350090 +0100
|
||||||
https://bugzilla.novell.com/show_bug.cgi?id=534909
|
@@ -141,7 +141,8 @@
|
||||||
|
|
||||||
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/ipmi_fwum.c | 86 ++++++++++++++++++++++++++++++--------------------------
|
|
||||||
1 file changed, 47 insertions(+), 39 deletions(-)
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_fwum.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
@@ -141,7 +141,8 @@ typedef struct sKFWUM_SaveFirmwareInfo
|
|
||||||
|
|
||||||
extern int verbose;
|
extern int verbose;
|
||||||
static unsigned char fileName[512];
|
static unsigned char fileName[512];
|
||||||
@ -23,7 +11,7 @@ Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|||||||
static tKFWUM_SaveFirmwareInfo saveFirmwareInfo;
|
static tKFWUM_SaveFirmwareInfo saveFirmwareInfo;
|
||||||
|
|
||||||
static void KfwumOutputHelp(void);
|
static void KfwumOutputHelp(void);
|
||||||
@@ -508,6 +509,12 @@ static tKFWUM_Status KfwumSetupBuffersFr
|
@@ -508,6 +509,12 @@
|
||||||
tKFWUM_Status status = KFWUM_STATUS_OK;
|
tKFWUM_Status status = KFWUM_STATUS_OK;
|
||||||
FILE * pFileHandle;
|
FILE * pFileHandle;
|
||||||
|
|
||||||
@ -36,7 +24,7 @@ Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|||||||
pFileHandle = fopen((const char *)pFileName, "rb");
|
pFileHandle = fopen((const char *)pFileName, "rb");
|
||||||
|
|
||||||
if(pFileHandle)
|
if(pFileHandle)
|
||||||
@@ -538,6 +545,7 @@ static tKFWUM_Status KfwumSetupBuffersFr
|
@@ -538,6 +545,7 @@
|
||||||
{
|
{
|
||||||
KfwumShowProgress((const unsigned char *)"Reading Firmware from File", 100, 100);
|
KfwumShowProgress((const unsigned char *)"Reading Firmware from File", 100, 100);
|
||||||
}
|
}
|
||||||
@ -44,125 +32,3 @@ Index: ipmitool-1.8.11/lib/ipmi_fwum.c
|
|||||||
}
|
}
|
||||||
return(status);
|
return(status);
|
||||||
}
|
}
|
||||||
@@ -986,9 +994,9 @@ static tKFWUM_Status KfwumManualRollback
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(1)
|
|
||||||
-#endif
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(1)
|
|
||||||
+#endif
|
|
||||||
struct KfwumStartFirmwareDownloadReq{
|
|
||||||
unsigned char lengthLSB;
|
|
||||||
unsigned char lengthMid;
|
|
||||||
@@ -996,20 +1004,20 @@ struct KfwumStartFirmwareDownloadReq{
|
|
||||||
unsigned char paddingLSB;
|
|
||||||
unsigned char paddingMSB;
|
|
||||||
unsigned char useSequence;
|
|
||||||
-} ATTRIBUTE_PACKING;
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(0)
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(1)
|
|
||||||
-#endif
|
|
||||||
+} ATTRIBUTE_PACKING;
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(0)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(1)
|
|
||||||
+#endif
|
|
||||||
struct KfwumStartFirmwareDownloadResp {
|
|
||||||
unsigned char bank;
|
|
||||||
-} ATTRIBUTE_PACKING;
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(0)
|
|
||||||
-#endif
|
|
||||||
+} ATTRIBUTE_PACKING;
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(0)
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
static tKFWUM_Status KfwumStartFirmwareImage(struct ipmi_intf * intf,
|
|
||||||
unsigned long length,unsigned short padding)
|
|
||||||
@@ -1065,9 +1073,9 @@ static tKFWUM_Status KfwumStartFirmwareI
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(1)
|
|
||||||
-#endif
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(1)
|
|
||||||
+#endif
|
|
||||||
struct KfwumSaveFirmwareAddressReq
|
|
||||||
{
|
|
||||||
unsigned char addressLSB;
|
|
||||||
@@ -1075,22 +1083,22 @@ struct KfwumSaveFirmwareAddressReq
|
|
||||||
unsigned char addressMSB;
|
|
||||||
unsigned char numBytes;
|
|
||||||
unsigned char txBuf[KFWUM_SMALL_BUFFER-KFWUM_OLD_CMD_OVERHEAD];
|
|
||||||
-} ATTRIBUTE_PACKING;
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(0)
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(1)
|
|
||||||
-#endif
|
|
||||||
+} ATTRIBUTE_PACKING;
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(0)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(1)
|
|
||||||
+#endif
|
|
||||||
struct KfwumSaveFirmwareSequenceReq
|
|
||||||
{
|
|
||||||
unsigned char sequenceNumber;
|
|
||||||
unsigned char txBuf[KFWUM_BIG_BUFFER];
|
|
||||||
-} ATTRIBUTE_PACKING;
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(0)
|
|
||||||
-#endif
|
|
||||||
+} ATTRIBUTE_PACKING;
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(0)
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
|
|
||||||
#define FWUM_SAVE_FIRMWARE_NO_RESPONSE_LIMIT ((unsigned char)6)
|
|
||||||
@@ -1234,19 +1242,19 @@ static tKFWUM_Status KfwumSaveFirmwareIm
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(1)
|
|
||||||
-#endif
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(1)
|
|
||||||
+#endif
|
|
||||||
struct KfwumFinishFirmwareDownloadReq{
|
|
||||||
unsigned char versionMaj;
|
|
||||||
unsigned char versionMinSub;
|
|
||||||
unsigned char versionSdr;
|
|
||||||
unsigned char reserved;
|
|
||||||
-} ATTRIBUTE_PACKING;
|
|
||||||
-#ifdef PRAGMA_PACK
|
|
||||||
-#pramga pack(0)
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
+} ATTRIBUTE_PACKING;
|
|
||||||
+#ifdef PRAGMA_PACK
|
|
||||||
+#pramga pack(0)
|
|
||||||
+#endif
|
|
||||||
+
|
|
||||||
static tKFWUM_Status KfwumFinishFirmwareImage(struct ipmi_intf * intf,
|
|
||||||
tKFWUM_InFirmwareInfo firmInfo)
|
|
||||||
{
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:df219019dc2216c3b7a894edd20286b2118aa636f9990c8405674ce84948eddd
|
|
||||||
size 584416
|
|
3
ipmitool-1.8.12.tar.bz2
Normal file
3
ipmitool-1.8.12.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:549b2da65c30905248aee07367a9cae3dd94bceaddd9c122d55075766c868733
|
||||||
|
size 684159
|
@ -1,4 +1,15 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 28 13:25:09 UTC 2013 - kkaempf@suse.com
|
||||||
|
|
||||||
|
- Adapt to Automake 1.13
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 28 12:28:56 UTC 2013 - kkaempf@suse.com
|
||||||
|
|
||||||
|
- Version 1.8.12 released 2012-08-09
|
||||||
|
Changes: many, see
|
||||||
|
http://ipmitool.cvs.sourceforge.net/viewvc/ipmitool/ipmitool/ChangeLog?revision=1.37&view=markup&pathrev=IPMITOOL_1_8_12
|
||||||
|
-------------------------------------------------------------------
|
||||||
Mon Feb 13 10:47:55 UTC 2012 - coolo@suse.com
|
Mon Feb 13 10:47:55 UTC 2012 - coolo@suse.com
|
||||||
|
|
||||||
- patch license to follow spdx.org standard
|
- patch license to follow spdx.org standard
|
||||||
|
@ -23,7 +23,7 @@ BuildRequires: openssl-devel readline-devel
|
|||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
Url: http://ipmitool.sourceforge.net/
|
Url: http://ipmitool.sourceforge.net/
|
||||||
Summary: Utility for IPMI Control
|
Summary: Utility for IPMI Control
|
||||||
Version: 1.8.11
|
Version: 1.8.12
|
||||||
Release: 9
|
Release: 9
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
@ -35,8 +35,8 @@ Patch3: fwum_enhance_output.patch
|
|||||||
Patch4: sdradd_close_file_handle.patch
|
Patch4: sdradd_close_file_handle.patch
|
||||||
Patch5: ekanalyzer_fix_wrong_type_comparison.patch
|
Patch5: ekanalyzer_fix_wrong_type_comparison.patch
|
||||||
Patch6: fix_file_permissions.patch
|
Patch6: fix_file_permissions.patch
|
||||||
Patch7: lan_fix_return_value.patch
|
|
||||||
Patch8: several_more_compile_fixes.patch
|
Patch8: several_more_compile_fixes.patch
|
||||||
|
Patch9: automake-1.13.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -60,14 +60,14 @@ and setting LAN configuration, and chassis power control.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%patch -p1
|
||||||
%patch1
|
%patch1 -p0
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
%patch3 -p1
|
%patch3 -p1
|
||||||
%patch4 -p1
|
%patch4 -p1
|
||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
|
||||||
%patch8 -p1
|
%patch8 -p1
|
||||||
|
%patch9 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
touch INSTALL NEWS
|
touch INSTALL NEWS
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
Index: ipmitool-1.8.11/src/plugins/lan/lan.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/src/plugins/lan/lan.c
|
|
||||||
+++ ipmitool-1.8.11/src/plugins/lan/lan.c
|
|
||||||
@@ -1071,7 +1071,7 @@ uint8_t * ipmi_lan_build_sol_msg(struct
|
|
||||||
msg = malloc(len);
|
|
||||||
if (msg == NULL) {
|
|
||||||
lprintf(LOG_ERR, "ipmitool: malloc failure");
|
|
||||||
- return;
|
|
||||||
+ return msg;
|
|
||||||
}
|
|
||||||
memset(msg, 0, len);
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/src/plugins/lanplus/lanplus.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/src/plugins/lanplus/lanplus.c
|
|
||||||
+++ ipmitool-1.8.11/src/plugins/lanplus/lanplus.c
|
|
||||||
@@ -734,7 +734,7 @@ ipmi_lan_poll_recv(struct ipmi_intf * in
|
|
||||||
ipmi_req_remove_entry(rsp->payload.ipmi_response.rq_seq,
|
|
||||||
rsp->payload.ipmi_response.cmd);
|
|
||||||
ipmi_lan_poll_recv(intf);
|
|
||||||
- return;
|
|
||||||
+ return NULL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
@ -1,18 +1,7 @@
|
|||||||
Fix unclosed file handle in ipmi_sdradd.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_sdradd.c ./lib/ipmi_sdradd.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_sdradd.c 2010-04-23 22:00:41.000000000 +0200
|
||||||
References:
|
+++ ./lib/ipmi_sdradd.c 2013-02-28 13:44:59.044084023 +0100
|
||||||
https://bugzilla.novell.com/show_bug.cgi?id=534909
|
@@ -628,6 +629,7 @@
|
||||||
|
|
||||||
Signed-off-by: Thomas Renninger <trenn@suse.de>
|
|
||||||
---
|
|
||||||
lib/ipmi_sdradd.c | 1 +
|
|
||||||
1 file changed, 1 insertion(+)
|
|
||||||
|
|
||||||
Index: ipmitool-1.8.11/lib/ipmi_sdradd.c
|
|
||||||
===================================================================
|
|
||||||
--- ipmitool-1.8.11.orig/lib/ipmi_sdradd.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_sdradd.c
|
|
||||||
@@ -380,6 +380,7 @@ ipmi_sdr_read_records(const char *filena
|
|
||||||
queue->tail->next = sdrr;
|
queue->tail->next = sdrr;
|
||||||
queue->tail = sdrr;
|
queue->tail = sdrr;
|
||||||
}
|
}
|
||||||
|
@ -1,45 +1,6 @@
|
|||||||
Fixes several compile warnings listed below
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c ./lib/ipmi_ekanalyzer.c
|
||||||
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_ekanalyzer.c 2013-02-28 13:59:10.489669393 +0100
|
||||||
ipmi_sdr.c: In function 'ipmi_sdr_print_sensor_full':
|
+++ ./lib/ipmi_ekanalyzer.c 2013-02-28 14:03:01.722792252 +0100
|
||||||
ipmi_sdr.c:1177: warning: implicit declaration of function 'ipmi_sensor_get_sensor_reading_factors'
|
|
||||||
|
|
||||||
ipmi_chassis.c:1143: warning: unused variable 'i'
|
|
||||||
ipmi_chassis.c:717: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
|
|
||||||
ipmi_chassis.c:720: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
|
|
||||||
ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
|
|
||||||
|
|
||||||
================================================================================
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_chassis.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_chassis.c
|
|
||||||
@@ -714,14 +714,14 @@
|
|
||||||
|
|
||||||
printf(" Boot Initiator Info :\n");
|
|
||||||
printf(" Channel Number : %d\n", (rsp->data[2] & 0x0f));
|
|
||||||
- printf(" Session Id : %08Xh\n",session_id);
|
|
||||||
+ printf(" Session Id : %08lXh\n",session_id);
|
|
||||||
if(timestamp != 0)
|
|
||||||
{
|
|
||||||
- printf(" Timestamp : %08Xh, %s\n",timestamp,time_buf);
|
|
||||||
+ printf(" Timestamp : %08lXh, %s\n",timestamp,time_buf);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
- printf(" Timestamp : %08Xh, undefined\n",timestamp);
|
|
||||||
+ printf(" Timestamp : %08lXh, undefined\n",timestamp);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -1140,8 +1140,6 @@
|
|
||||||
memset(&flags[0], 0, sizeof(flags));
|
|
||||||
token = strtok_r(argv[2] + 8, ",", &saveptr);
|
|
||||||
while (token != NULL) {
|
|
||||||
- int i;
|
|
||||||
-
|
|
||||||
if (strcmp(token, "help") == 0) {
|
|
||||||
optionError = 1;
|
|
||||||
break;
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_ekanalyzer.c
|
|
||||||
@@ -395,7 +395,6 @@
|
@@ -395,7 +395,6 @@
|
||||||
static int
|
static int
|
||||||
ipmi_ek_get_file_type( char * argument )
|
ipmi_ek_get_file_type( char * argument )
|
||||||
@ -65,7 +26,7 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
|
|
||||||
/*Create an empty list*/
|
/*Create an empty list*/
|
||||||
for ( list=0; list<argc; list++ ){
|
for ( list=0; list<argc; list++ ){
|
||||||
@@ -3250,11 +3246,11 @@
|
@@ -3250,7 +3246,7 @@
|
||||||
offset += sizeof(struct fru_picmgext_guid);
|
offset += sizeof(struct fru_picmgext_guid);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,11 +35,6 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
offset < record->header.len;
|
offset < record->header.len;
|
||||||
offset += sizeof(struct fru_picmgext_link_desc)
|
offset += sizeof(struct fru_picmgext_link_desc)
|
||||||
) {
|
) {
|
||||||
- /* to solve little endian /big endian problem */
|
|
||||||
+ /* to solve little endian /big endian problem */
|
|
||||||
unsigned long data;
|
|
||||||
struct fru_picmgext_link_desc * d;
|
|
||||||
|
|
||||||
@@ -3419,7 +3415,7 @@
|
@@ -3419,7 +3415,7 @@
|
||||||
|
|
||||||
printf(" IPMB-0 Hub Descriptor Count: 0x%02x", record->data[offset++]);
|
printf(" IPMB-0 Hub Descriptor Count: 0x%02x", record->data[offset++]);
|
||||||
@ -92,26 +48,14 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
(feature > 1) & 1,
|
(feature > 1) & 1,
|
||||||
(feature&1)?"Source":"Receiver");
|
(feature&1)?"Source":"Receiver");
|
||||||
printf("\tFamily: 0x%02x - AccLVL: 0x%02x\n", family, accuracy);
|
printf("\tFamily: 0x%02x - AccLVL: 0x%02x\n", family, accuracy);
|
||||||
- printf("\tFRQ: %-9d - min: %-9d - max: %-9d\n",
|
- printf("\tFRQ: %-9ld - min: %-9ld - max: %-9ld\n",
|
||||||
+ printf("\tFRQ: %-9lu - min: %-9lu - max: %-9lu\n",
|
+ printf("\tFRQ: %-9lu - min: %-9ld - max: %-9ld\n",
|
||||||
freq, min_freq, max_freq);
|
freq, min_freq, max_freq);
|
||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
@@ -3902,9 +3898,9 @@
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c ./lib/ipmi_fwum.c
|
||||||
else{
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_fwum.c 2013-02-28 13:53:34.644417793 +0100
|
||||||
int record_count = 0;
|
+++ ./lib/ipmi_fwum.c 2013-02-28 14:04:34.910468572 +0100
|
||||||
|
|
||||||
- if ( verbose == LOG_DEBUG ){
|
|
||||||
- printf( "start multi offset = 0x%02x\n", multi_offset );
|
|
||||||
- }
|
|
||||||
+ if ( verbose == LOG_DEBUG )
|
|
||||||
+ printf( "start multi offset = 0x%02lx\n", multi_offset );
|
|
||||||
+
|
|
||||||
/*the offset value is in multiple of 8 bytes.*/
|
|
||||||
multi_offset = multi_offset * 8;
|
|
||||||
fseek ( input_file, multi_offset, SEEK_SET );
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_fwum.c
|
|
||||||
@@ -480,7 +480,7 @@
|
@@ -480,7 +480,7 @@
|
||||||
|
|
||||||
if(pFileHandle)
|
if(pFileHandle)
|
||||||
@ -129,9 +73,10 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
--- ipmitool-1.8.11/lib/ipmi_hpmfwupg.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_hpmfwupg.c ./lib/ipmi_hpmfwupg.c
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_hpmfwupg.c
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_hpmfwupg.c 2013-02-28 13:52:11.893152359 +0100
|
||||||
@@ -1220,7 +1220,6 @@
|
+++ ./lib/ipmi_hpmfwupg.c 2013-02-28 14:01:19.162746040 +0100
|
||||||
|
@@ -1286,7 +1286,6 @@
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
int HpmfwupgTargetCheck(struct ipmi_intf * intf, int option)
|
int HpmfwupgTargetCheck(struct ipmi_intf * intf, int option)
|
||||||
{
|
{
|
||||||
@ -139,7 +84,7 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
struct HpmfwupgGetTargetUpgCapabilitiesCtx targetCapCmd;
|
struct HpmfwupgGetTargetUpgCapabilitiesCtx targetCapCmd;
|
||||||
int rc = HPMFWUPG_SUCCESS;
|
int rc = HPMFWUPG_SUCCESS;
|
||||||
int componentId = 0;
|
int componentId = 0;
|
||||||
@@ -1363,7 +1362,6 @@
|
@@ -1445,7 +1444,6 @@
|
||||||
int activate,int componentToUpload, int option)
|
int activate,int componentToUpload, int option)
|
||||||
{
|
{
|
||||||
int rc = HPMFWUPG_SUCCESS;
|
int rc = HPMFWUPG_SUCCESS;
|
||||||
@ -147,25 +92,9 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
struct HpmfwupgUpgradeCtx fwupgCtx;
|
struct HpmfwupgUpgradeCtx fwupgCtx;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -1847,8 +1845,6 @@
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_isol.c ./lib/ipmi_isol.c
|
||||||
unsigned char componentIdByte = 0x00;
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_isol.c 2012-01-21 06:32:24.000000000 +0100
|
||||||
VERSIONINFO *pVersionInfo;
|
+++ ./lib/ipmi_isol.c 2013-02-28 14:01:19.162746040 +0100
|
||||||
|
|
||||||
- struct HpmfwupgGetComponentPropertiesCtx getCompProp;
|
|
||||||
-
|
|
||||||
/* Save component ID on which the upload is done */
|
|
||||||
componentIdByte = pActionRecord->components.ComponentBits.byte;
|
|
||||||
while ((componentIdByte>>=1)!=0)
|
|
||||||
@@ -2061,7 +2057,6 @@
|
|
||||||
struct HpmfwupgInitiateUpgradeActionCtx initUpgActionCmd;
|
|
||||||
struct HpmfwupgUploadFirmwareBlockCtx uploadCmd;
|
|
||||||
struct HpmfwupgFinishFirmwareUploadCtx finishCmd;
|
|
||||||
- struct HpmfwupgGetComponentPropertiesCtx getCompProp;
|
|
||||||
VERSIONINFO *pVersionInfo;
|
|
||||||
|
|
||||||
unsigned char* pData, *pDataInitial;
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_isol.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_isol.c
|
|
||||||
@@ -413,7 +413,6 @@
|
@@ -413,7 +413,6 @@
|
||||||
struct ipmi_rs * rsp;
|
struct ipmi_rs * rsp;
|
||||||
struct ipmi_rq req;
|
struct ipmi_rq req;
|
||||||
@ -174,115 +103,40 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
|
|
||||||
memset(&req, 0, sizeof(req));
|
memset(&req, 0, sizeof(req));
|
||||||
req.msg.netfn = IPMI_NETFN_ISOL;
|
req.msg.netfn = IPMI_NETFN_ISOL;
|
||||||
--- ipmitool-1.8.11/lib/ipmi_picmg.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_picmg.c ./lib/ipmi_picmg.c
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_picmg.c
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_picmg.c 2012-08-03 19:07:07.000000000 +0200
|
||||||
@@ -395,11 +395,11 @@
|
+++ ./lib/ipmi_picmg.c 2013-02-28 14:18:31.523468906 +0100
|
||||||
|
@@ -432,7 +432,7 @@
|
||||||
}
|
}
|
||||||
else if (d->type >= 0x06 && d->type <= 0xef)
|
else if (d->type >= 0x06 && d->type <= 0xef)
|
||||||
{
|
{
|
||||||
- printf("Reserved\n",d->type);
|
- printf("Reserved\n");
|
||||||
+ printf("Reserved %d\n",d->type);
|
+ printf("Reserved %d\n",d->type);
|
||||||
}
|
}
|
||||||
else if (d->type >= 0xf0 && d->type <= 0xfe)
|
else if (d->type >= 0xf0 && d->type <= 0xfe)
|
||||||
{
|
{
|
||||||
- printf("OEM GUID Definition\n",d->type);
|
@@ -1201,7 +1201,7 @@
|
||||||
+ printf("OEM GUID Definition %d\n",d->type);
|
oemval2str( rsp->data[3], rsp->data[4],
|
||||||
}
|
picmg_clk_accuracy_vals));
|
||||||
else
|
|
||||||
{
|
|
||||||
@@ -471,7 +471,6 @@
|
|
||||||
struct ipmi_rq req;
|
|
||||||
|
|
||||||
unsigned char msg_data[6];
|
- printf(" - Freq: %ld\n", freq);
|
||||||
- struct fru_picmgext_link_desc* d;
|
+ printf(" - Freq: %lu\n", freq);
|
||||||
|
}
|
||||||
memset(&req, 0, sizeof(req));
|
}
|
||||||
|
|
||||||
@@ -762,7 +761,7 @@
|
|
||||||
return -1;
|
|
||||||
}
|
}
|
||||||
|
@@ -1258,7 +1258,7 @@
|
||||||
- printf("LED Color Capabilities: ", rsp->data[1] );
|
printf("## setting: 0x%02x\n", msg_data[3]);
|
||||||
+ printf("LED Color Capabilities: ");
|
|
||||||
for ( i=0 ; i<8 ; i++ ) {
|
|
||||||
if ( rsp->data[1] & (0x01 << i) ) {
|
|
||||||
printf("%s, ", led_color_str[ i ]);
|
|
||||||
@@ -945,7 +944,6 @@
|
|
||||||
int
|
|
||||||
ipmi_picmg_set_power_level(struct ipmi_intf * intf, int argc, char ** argv)
|
|
||||||
{
|
|
||||||
- int i;
|
|
||||||
struct ipmi_rs * rsp;
|
|
||||||
struct ipmi_rq req;
|
|
||||||
|
|
||||||
@@ -1020,7 +1018,6 @@
|
|
||||||
int
|
|
||||||
ipmi_picmg_clk_get(struct ipmi_intf * intf, int argc, char ** argv)
|
|
||||||
{
|
|
||||||
- int i;
|
|
||||||
struct ipmi_rs * rsp;
|
|
||||||
struct ipmi_rq req;
|
|
||||||
|
|
||||||
@@ -1073,7 +1070,7 @@
|
|
||||||
printf(" - Index: %d\n", rsp->data[2]);
|
|
||||||
printf(" - Family: %d\n", rsp->data[3]);
|
|
||||||
printf(" - AccLVL: %d\n", rsp->data[4]);
|
|
||||||
- printf(" - Freq: %d\n", freq);
|
|
||||||
+ printf(" - Freq: %lu\n", freq);
|
|
||||||
}
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
@@ -1083,7 +1080,6 @@
|
|
||||||
int
|
|
||||||
ipmi_picmg_clk_set(struct ipmi_intf * intf, int argc, char ** argv)
|
|
||||||
{
|
|
||||||
- int i;
|
|
||||||
struct ipmi_rs * rsp;
|
|
||||||
struct ipmi_rq req;
|
|
||||||
|
|
||||||
@@ -1115,10 +1111,10 @@
|
|
||||||
#if 1
|
|
||||||
printf("## ID: %d\n", msg_data[1]);
|
|
||||||
printf("## index: %d\n", msg_data[2]);
|
|
||||||
-printf("## setting: 0x02x\n", msg_data[3]);
|
|
||||||
+printf("## setting: %0x02x\n", msg_data[3]);
|
|
||||||
printf("## family: %d\n", msg_data[4]);
|
printf("## family: %d\n", msg_data[4]);
|
||||||
printf("## acc: %d\n", msg_data[5]);
|
printf("## acc: %d\n", msg_data[5]);
|
||||||
-printf("## freq: %d\n", freq );
|
-printf("## freq: %ld\n", freq );
|
||||||
+printf("## freq: %lu\n", freq );
|
+printf("## freq: %lu\n", freq );
|
||||||
printf("## res: %d\n", msg_data[10]);
|
printf("## res: %d\n", msg_data[10]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -1528,15 +1524,10 @@
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_sdradd.c ./lib/ipmi_sdradd.c
|
||||||
else if (!strncmp(argv[0], "clk", 3)) {
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_sdradd.c 2013-02-28 13:55:22.988692984 +0100
|
||||||
if (argc > 1) {
|
+++ ./lib/ipmi_sdradd.c 2013-02-28 14:01:19.166746197 +0100
|
||||||
if (!strncmp(argv[1], "get", 3)) {
|
@@ -573,7 +573,6 @@
|
||||||
- if (argc > 2) {
|
|
||||||
- unsigned char clk_id;
|
|
||||||
- unsigned char clk_res;
|
|
||||||
-
|
|
||||||
+ if (argc > 2)
|
|
||||||
rc = ipmi_picmg_clk_get(intf, argc-1, &(argv[2]));
|
|
||||||
- }
|
|
||||||
else {
|
|
||||||
printf("clk get <CLK-ID> [<DEV-ID>]\n");
|
|
||||||
-
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_sdr.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_sdr.c
|
|
||||||
@@ -47,6 +47,7 @@
|
|
||||||
#include <ipmitool/ipmi_entity.h>
|
|
||||||
#include <ipmitool/ipmi_constants.h>
|
|
||||||
#include <ipmitool/ipmi_strings.h>
|
|
||||||
+#include <ipmitool/ipmi_sensor.h>
|
|
||||||
|
|
||||||
#if HAVE_CONFIG_H
|
|
||||||
# include <config.h>
|
|
||||||
--- ipmitool-1.8.11/lib/ipmi_sdradd.c
|
|
||||||
+++ ipmitool-1.8.11/lib/ipmi_sdradd.c
|
|
||||||
@@ -325,7 +325,6 @@
|
|
||||||
static int
|
static int
|
||||||
ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
|
ipmi_sdr_read_records(const char *filename, struct sdrr_queue *queue)
|
||||||
{
|
{
|
||||||
@ -290,13 +144,14 @@ ipmi_chassis.c:724: warning: format '%08X' expects type 'unsigned int', but argu
|
|||||||
int rc = 0;
|
int rc = 0;
|
||||||
int fd;
|
int fd;
|
||||||
uint8_t binHdr[5];
|
uint8_t binHdr[5];
|
||||||
--- ipmitool-1.8.11/src/ipmievd.c
|
diff -wruN -x '*~' -x '*.o' -x '*.a' -x '*.so' -x '*.so.[0-9]' -x autom4te.cache -x .deps -x .libs -x Makefile -x Makefile.in ../orig-ipmitool-1.8.12/lib/ipmi_sdr.c ./lib/ipmi_sdr.c
|
||||||
+++ ipmitool-1.8.11/src/ipmievd.c
|
--- ../orig-ipmitool-1.8.12/lib/ipmi_sdr.c 2012-07-23 16:52:57.000000000 +0200
|
||||||
@@ -665,6 +665,7 @@
|
+++ ./lib/ipmi_sdr.c 2013-02-28 14:01:19.166746197 +0100
|
||||||
}
|
@@ -52,6 +52,7 @@
|
||||||
sleep(selwatch_timeout);
|
#include <ipmitool/ipmi_entity.h>
|
||||||
}
|
#include <ipmitool/ipmi_constants.h>
|
||||||
+ return 0;
|
#include <ipmitool/ipmi_strings.h>
|
||||||
}
|
+#include <ipmitool/ipmi_sensor.h>
|
||||||
/*************************************************************************/
|
|
||||||
|
|
||||||
|
#if HAVE_CONFIG_H
|
||||||
|
# include <config.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user