]> git.baikalelectronics.ru Git - kernel.git/commit
modpost: rework and consolidate logging interface
authorJessica Yu <jeyu@kernel.org>
Fri, 6 Mar 2020 16:02:05 +0000 (17:02 +0100)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 13 Mar 2020 01:04:36 +0000 (10:04 +0900)
commit75bec043d1add79aa7dd5516b87c2fbaddde8628
treeef8aeabe63b764b57e4635ffbf1cdf032f3c0e99
parenta614994ac205883a69c92396dec51a067c95dd11
modpost: rework and consolidate logging interface

Rework modpost's logging interface by consolidating merror(), warn(), and
fatal() to use a single function, modpost_log(). Introduce different
logging levels (WARN, ERROR, FATAL) as well. The purpose of this cleanup is
to reduce code duplication when deciding whether or not to warn or error
out based on a condition.

Signed-off-by: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mod/modpost.c
scripts/mod/modpost.h