From 15d43943cb04d140ce319406a71103dea06bca66 Mon Sep 17 00:00:00 2001 From: Konstantin Dorfman Date: Mon, 3 Feb 2020 14:26:40 +0200 Subject: [PATCH] soc: qcom: spcom: propagate print macro parameters to pr_*() This change propagates macro parameters to pr_err/warn/info/debug. Change-Id: I2f205066a5c19b74e6852f758bd587a9a6382e49 Signed-off-by: Konstantin Dorfman --- drivers/soc/qcom/spcom.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/soc/qcom/spcom.c b/drivers/soc/qcom/spcom.c index 30232c83872c..8e9148d14849 100644 --- a/drivers/soc/qcom/spcom.c +++ b/drivers/soc/qcom/spcom.c @@ -73,23 +73,23 @@ } while (0) #define spcom_pr_err(_fmt, ...) do { \ - pr_err(_fmt); \ + pr_err(_fmt, ##__VA_ARGS__); \ spcom_ipc_log_string("%s" pr_fmt(_fmt), "", ##__VA_ARGS__); \ } while (0) #define spcom_pr_warn(_fmt, ...) do { \ - pr_warn(_fmt); \ + pr_warn(_fmt, ##__VA_ARGS__); \ spcom_ipc_log_string("%s" pr_fmt(_fmt), "", ##__VA_ARGS__); \ } while (0) #define spcom_pr_info(_fmt, ...) do { \ - pr_info(_fmt); \ + pr_info(_fmt, ##__VA_ARGS__); \ spcom_ipc_log_string("%s" pr_fmt(_fmt), "", ##__VA_ARGS__); \ } while (0) #if defined(DEBUG) #define spcom_pr_dbg(_fmt, ...) do { \ - pr_debug(_fmt); \ + pr_debug(_fmt, ##__VA_ARGS__); \ spcom_ipc_log_string("%s" pr_fmt(_fmt), "", ##__VA_ARGS__); \ } while (0) #else