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 <seppo.ingalsuo@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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;
}
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 {