aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorRohit Sarkar <[email protected]>2019-09-11 19:21:13 +0530
committerGreg Kroah-Hartman <[email protected]>2019-09-12 10:38:45 +0100
commit63350bdb384543e2fcfd007b9da8239f03c56860 (patch)
treeb63dba4c4ca94eae32e517195aebed65cd99f9a3 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent9a4c56be67f8153d8f8459c4c7bbbbc360d5fe9e (diff)
staging: vhciq_core: replace snprintf with scnprintf
When the number of bytes to be printed exceeds the limit snprintf returns the number of bytes that would have been printed (if there was no truncation). This might cause issues, hence use scnprintf which returns the actual number of bytes printed to buffer always Signed-off-by: Rohit Sarkar <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/20190911135112.GA5569@SARKAR Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions