mirror of https://gerrit.osmocom.org/osmo-ci
lint: checkpatch_osmo: ignore TRACING_LOGGING
Don't recommend to use ftrace instead of using __func__ inside printf. This only applies to the linux kernel, not to the Osmocom code base. Related: OS#5087 Related: https://gerrit.osmocom.org/c/libosmocore/+/6357 Change-Id: Ied23be32d3371a8b9ac9938a336474f71e7a3ccd
This commit is contained in:
parent
82f21fa6fc
commit
d7fe8fd047
|
@ -70,6 +70,7 @@ exclude_paths_project() {
|
|||
# * SPDX_LICENSE_TAG: we don't place it on line 1
|
||||
# * SPLIT_STRING: we do split long messages over multiple lines
|
||||
# * STRING_FRAGMENTS: sometimes used intentionally to improve readability
|
||||
# * TRACING_LOGGING: recommends to use kernel's internal ftrace instead of printf("%s()\n", __func__)
|
||||
# * TRAILING_STATEMENTS: not followed, e.g. 'while (osmo_select_main_ctx(1) > 0);' is put in one line
|
||||
# * UNNECESSARY_BREAK: not followed (see https://gerrit.osmocom.org/c/libosmo-netif/+/26429)
|
||||
# * UNNECESSARY_INT: not followed (see https://gerrit.osmocom.org/c/libosmocore/+/25345)
|
||||
|
@ -108,6 +109,7 @@ $SCRIPT_DIR/checkpatch.pl \
|
|||
--ignore SPDX_LICENSE_TAG \
|
||||
--ignore SPLIT_STRING \
|
||||
--ignore STRING_FRAGMENTS \
|
||||
--ignore TRACING_LOGGING \
|
||||
--ignore TRAILING_STATEMENTS \
|
||||
--ignore UNNECESSARY_BREAK \
|
||||
--ignore UNNECESSARY_INT \
|
||||
|
|
Loading…
Reference in New Issue