aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/gcc-generate-rtl-pass.h
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2019-10-11 18:50:36 +0300
committerCorey Minyard <[email protected]>2019-10-22 14:42:34 -0500
commit8ee7b485bbfbd182aa2c1a0a45812e151c1000bd (patch)
tree9b839e68e7172d2aabfd7534b1ddf76ea8cc0fc9 /scripts/gcc-plugins/gcc-generate-rtl-pass.h
parentcbb79863fc3175ed5ac506465948b02a893a8235 (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/gcc-generate-rtl-pass.h')
0 files changed, 0 insertions, 0 deletions