From: Hook, Gary Date: Wed, 10 Jul 2019 21:45:37 +0000 (+0000) Subject: crypto: ccp - Include the module name in system log messages X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2a03e3a50a61494fd26d82eabd43a26be0f736cc;p=openwrt%2Fstaging%2Fblogic.git crypto: ccp - Include the module name in system log messages Redefine pr_fmt so that the module name is prefixed to every log message produced by the ccp-crypto module Signed-off-by: Gary R Hook Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/ccp/ccp-crypto.h b/drivers/crypto/ccp/ccp-crypto.h index 25409cea8465..599f7f2820a0 100644 --- a/drivers/crypto/ccp/ccp-crypto.h +++ b/drivers/crypto/ccp/ccp-crypto.h @@ -24,6 +24,10 @@ #include #include +/* We want the module name in front of our messages */ +#undef pr_fmt +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #define CCP_LOG_LEVEL KERN_INFO #define CCP_CRA_PRIORITY 300