From 5db60d5e854748af2e5c2bd0f9e68624fa78916f 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. Closes: https://github.com/alsa-project/alsa-utils/pull/270 Signed-off-by: Seppo Ingalsuo Signed-off-by: Jaroslav Kysela --- 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 15b8c10..adbec79 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 {