ipmitool/Fix-time-format-for-sel-list-v.patch
Thomas Renninger d36c0dea64 Accepting request 1100382 from home:trenn:branches:systemsmanagement
- Fix: ipmitool duplicates the timestamp (bsc#1213390)
A    Fix-time-format-for-sel-list-v.patch
- Remove: Make-IANA-PEN-download-configurable (is mainline)
D 0006-Make-IANA-PEN-download-configurable-fix-uninitalized.patch
- Update to version 1.8.19.13.gbe11d94:
  * configure.ac: allow disabling registry downloads
  * lan: channel: Fix set alert on/off
  * make: use correct docdir variable provided by autotools
  * Do not require the IANA PEN registry file
  * configure.ac: fix readline static build
  * Update github actions for modern OSes
  * Update macos target name in github actions
  * delloem: Fix the unalign bug in arm64
  * lanplus: Realloc the msg if the payload_length gets updated
  * fru print: Add area checksum verification
  * fru: Add decoder for multirec system mgmt records
  * Fix enterprise-numbers URL
  * Update issue templates

OBS-URL: https://build.opensuse.org/request/show/1100382
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=64
2023-07-25 15:16:43 +00:00

57 lines
1.8 KiB
Diff

From: Thomas Renninger <trenn@suse.com>
Subject: Fix time format for sel list -v
References: bsc#1213390
Patch-Mainline:
Git-commit: d34a56908da3d85c4ddce1be1aab90941177b13b
Git-repo: git@github.com:watologo1/ipmitool.git.git
The time for sel entries gets wrongly formatted:
SEL Record ID : 3135
Record Type : 02
Timestamp : 18.07.2023 18.07.2023
Generator ID : 0044
This patch fixes this:
SEL Record ID : 3135
Record Type : 02
Timestamp : 18.07.2023 11:26:24 CEST
Generator ID : 0044
The first hunk for:
`sel list -v`
The snd hunk for:
`sel get ID`
Signed-off-by: <trenn@suse.com>
diff --git a/lib/ipmi_sel.c b/lib/ipmi_sel.c
index 31c0eea..7d6d01f 100644
--- a/lib/ipmi_sel.c
+++ b/lib/ipmi_sel.c
@@ -2043,11 +2043,9 @@ ipmi_sel_print_std_entry_verbose(struct ipmi_intf * intf, struct sel_event_recor
{
printf(" Timestamp : ");
if (evt->record_type < 0xc0)
- printf("%s %s", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
+ printf("%s", ipmi_timestamp_numeric(evt->sel_type.standard_type.timestamp));
else
- printf("%s %s", ipmi_timestamp_date(evt->sel_type.oem_ts_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.oem_ts_type.timestamp));
+ printf("%s", ipmi_timestamp_numeric(evt->sel_type.oem_ts_type.timestamp));
printf("\n");
}
@@ -2133,8 +2131,7 @@ ipmi_sel_print_extended_entry_verbose(struct ipmi_intf * intf, struct sel_event_
if (evt->record_type < 0xe0)
{
printf(" Timestamp : ");
- printf("%s %s\n", ipmi_timestamp_date(evt->sel_type.standard_type.timestamp),
- ipmi_timestamp_time(evt->sel_type.standard_type.timestamp));
+ printf("%s\n", ipmi_timestamp_numeric(evt->sel_type.standard_type.timestamp));
}