diff options
author | Andy Shevchenko <[email protected]> | 2019-10-11 18:50:36 +0300 |
---|---|---|
committer | Corey Minyard <[email protected]> | 2019-10-22 14:42:34 -0500 |
commit | 8ee7b485bbfbd182aa2c1a0a45812e151c1000bd (patch) | |
tree | 9b839e68e7172d2aabfd7534b1ddf76ea8cc0fc9 /scripts/gcc-plugins | |
parent | cbb79863fc3175ed5ac506465948b02a893a8235 (diff) |
ipmi: use %*ph to print small buffer
Use %*ph format to print small buffer as hex string.
The change is safe since the specifier can handle up to 64 bytes and taking
into account the buffer size of 100 bytes on stack the function has never been
used to dump more than 32 bytes. Note, this also avoids potential buffer
overflow if the length of the input buffer is bigger.
This completely eliminates ipmi_debug_msg() in favour of Dynamic Debug.
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Corey Minyard <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins')
0 files changed, 0 insertions, 0 deletions