11
29
Fork
You've already forked ipmitool
33

sel: Fix date/time output of timestamps for 'sel get' #47

Merged
AlexanderAmelkin merged 1 commit from UniversalSuperBox/ipmitool:fix-sel-get-timestamps into master 2025年02月07日 20:08:18 +01:00

Both ipmi_timestamp_date and ipmi_timestamp_time call ipmi_timestamp_fmt
which overwrites the static buffer datebuf. Therefore %s simply output
the same thing twice.

Before:
Timestamp : 10/08/2024 10/08/2024
After:
Timestamp : 10/08/2024 10:46:55 AM PDT

Signed-off-by: Dalton Durst codeberg@tnvcomp.com

Both ipmi_timestamp_date and ipmi_timestamp_time call ipmi_timestamp_fmt which overwrites the static buffer datebuf. Therefore %s simply output the same thing twice. Before: Timestamp : 10/08/2024 10/08/2024 After: Timestamp : 10/08/2024 10:46:55 AM PDT Signed-off-by: Dalton Durst <codeberg@tnvcomp.com>
Both ipmi_timestamp_date and ipmi_timestamp_time call ipmi_timestamp_fmt
which overwrites the static buffer datebuf. Therefore %s simply output
the same thing twice.
Before:
 Timestamp : 10/08/2024 10/08/2024
After:
 Timestamp : 10/08/2024 10:46:55 AM PDT
Signed-off-by: Dalton Durst <codeberg@tnvcomp.com>
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
IPMITool/ipmitool!47
Reference in a new issue
IPMITool/ipmitool
No description provided.
Delete branch "UniversalSuperBox/ipmitool:fix-sel-get-timestamps"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?