Commit Graph

3 Commits

Author SHA1 Message Date
Neels Hofmeyr 7ae9791c59 scripts/verify_log_statements.py: figure out line numbers
Change-Id: Ib75c8f5a99ed556d85896b7f8c65fb9446a2fbce
2018-07-19 19:48:26 +02:00
Neels Hofmeyr 16515ddc78 scripts/verify_log_statements.py: fix regex
Would miss those where the fmt string starts on a new line.

Change-Id: If61a36a014a799b94030e5e08a50dfef4207a8a2
2018-07-19 19:47:07 +02:00
Neels Hofmeyr 7eec2dab31 add scripts/verify_log_statements.py
This came up in
https://gerrit.osmocom.org/#/c/osmo-bsc/+/9671/6//COMMIT_MSG@36

The errors it finds in the current code base are numerous, and many are
intended LOGP .. LOGPC calls. It doesn't make sense to enforce this, but so far
this can be used manually.

Change-Id: Id79389f090a2fded7ff01dc7e3fe9774e7f22ca0
2018-07-16 19:53:29 +02:00