checkpatch: improve output with multiple command-line files
authorJoe Perches <[email protected]>
Thu, 25 Jun 2015 22:03:00 +0000 (15:03 -0700)
committerLinus Torvalds <[email protected]>
Fri, 26 Jun 2015 00:00:41 +0000 (17:00 -0700)
commitd8469f16207c626d71749ada88c13db1238df39e
treefa8e6458a44731192b81bf98697edf71f047303d
parent47e0c88b37a5c3d6732f4ec896dfa8aa55868b4f
checkpatch: improve output with multiple command-line files

If there are multiple patches/files on the command line,
use a prefix before the patch/file message output like:
        --------------
        patch/filename
        --------------
to make the identifying which messages go with which
file/patch a bit easier to parse.

Move the perl version and false positive messages after
all the files have been scanned so that they are emitted
only once.

Standardize the NOTE: <...> form to always emit a blank
line before the NOTE and always use print << "EOM" style.

Signed-off-by: Joe Perches <[email protected]>
Suggested-by: Petr Mladek <[email protected]>
Tested-by: Petr Mladek <[email protected]>
Cc: Andy Whitcroft <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
scripts/checkpatch.pl