]> git.karo-electronics.de Git - karo-tx-linux.git/commit
checkpatch: more comprehensive split strings warning
authorJoe Perches <joe@perches.com>
Wed, 15 Jan 2014 05:55:33 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 15 Jan 2014 05:55:33 +0000 (16:55 +1100)
commita7ae60d380d0380c631270d1e5263d60ae45b8b6
treec12b48a1bbc9c81db01c397b80a9a346777cd120
parentd03e69b6353ccd13755518d46cf72cdd660a7789
checkpatch: more comprehensive split strings warning

The current checkpatch test for split strings does not find several cases
that should be found.

For instance:

  /* Else poor success; go back to mode in "active" table */
  } else {
  IWL_DEBUG_RATE(mvm,
-        "LQ: GOING BACK TO THE OLD TABLE suc=%d cur-tpt=%d old-tpt=%d\n",
+        "GOING BACK TO THE OLD TABLE: SR %d "
+        "cur-tpt %d old-tpt %d\n",
         window->success_ratio,
         window->average_tpt,
        lq_sta->last_tpt);

does not currently emit a warning.

Improve the test to find these cases.

Add more exceptions to reduce false positives for assembly and octal/hex
string constants.

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl