Remove trailing whitespace before \n in printf()
Tree-wide cleanup of all instances of printf()-style functions where a format string contains a space before a newline character. Change-Id: Ib5b5861e97bed9e9d62db03875547e3f771f4769 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/397031 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
46b93de613
commit
64465d0dc8
@ -51,6 +51,19 @@ else
|
||||
fi
|
||||
rm -f comment.log
|
||||
|
||||
echo -n "Checking trailing whitespace in output strings..."
|
||||
|
||||
git grep --line-number -e ' \\n"' -- '*.[ch]' > whitespace.log || true
|
||||
|
||||
if [ -s whitespace.log ]; then
|
||||
echo " Incorrect trailing whitespace detected"
|
||||
cat whitespace.log
|
||||
rc=1
|
||||
else
|
||||
echo " OK"
|
||||
fi
|
||||
rm -f whitespace.log
|
||||
|
||||
echo -n "Checking for use of forbidden library functions..."
|
||||
|
||||
git grep -w strcpy -- app examples lib test > badfunc.log || true
|
||||
|
Loading…
Reference in New Issue
Block a user