]> git.ozlabs.org Git - petitboot/commit
discover: Nicely format IPMI response buffers v1.9.2
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 12 Nov 2018 01:01:05 +0000 (12:01 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Fri, 16 Nov 2018 02:55:29 +0000 (13:55 +1100)
commitcf30fdd3100a425f2f01214ca726f0641f844eec
tree579c4082794e909d71ea172a1948ed553ed19b17
parent2bc0df4aa35a89c5af7e54f459e2bbde20ca6a7e
discover: Nicely format IPMI response buffers

A few places where we print out the response buffer from an IPMI command
weren't updated when log timestamps were added, resulting in very hard
to read output. Add a little helper to format buffers and use it to
print these with only one timestamp.

Example:

[04:59:01] ipmi_get_bmc_versions: BMC version resp [0][16]:
0x00 0x20 0x01 0x02 0x13 0x02 0xbf 0x00
0x00 0x00 0xbb 0xaa 0x58 0x98 0x01 0x00

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/ipmi.c
discover/platform-powerpc.c
lib/util/util.c
lib/util/util.h