From 8cb1f04bc22e2e4c3f7ec2f45e34bd22cfb64067 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Tue, 18 Jun 2024 15:47:05 +0300 Subject: [PATCH] Topology: NHLT: Intel: Fix compile warning in dmic-process.c This patch fixes warnings like: intel/dmic/dmic-process.c: In function 'select_mode': intel/dmic/dmic-process.c:498:35: warning: format '%s' expects a matching 'char *' argument [-Wformat=] The intended __func__ string is missing from the two fprintf() prints for errors. Signed-off-by: Seppo Ingalsuo --- topology/nhlt/intel/dmic/dmic-process.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/topology/nhlt/intel/dmic/dmic-process.c b/topology/nhlt/intel/dmic/dmic-process.c index 15b8c1075..adbec79be 100644 --- a/topology/nhlt/intel/dmic/dmic-process.c +++ b/topology/nhlt/intel/dmic/dmic-process.c @@ -495,7 +495,7 @@ static int select_mode(struct intel_dmic_params *dmic, struct dmic_calc_configur g_cic = mcic * mcic * mcic * mcic * mcic; if (g_cic < 0) { /* Erroneous decimation factor and CIC gain */ - fprintf(stderr, "%s: erroneous decimation factor and CIC gain\n"); + fprintf(stderr, "%s: erroneous decimation factor and CIC gain\n", __func__); return -EINVAL; } @@ -520,7 +520,7 @@ static int select_mode(struct intel_dmic_params *dmic, struct dmic_calc_configur cfg->fir_a->length, gain_to_fir); if (ret < 0) { /* Invalid coefficient set found, should not happen. */ - fprintf(stderr, "%s: invalid coefficient set found\n"); + fprintf(stderr, "%s: invalid coefficient set found\n", __func__); return -EINVAL; } } else {