From dcf7a03d0f81a75608a21f01ab6f2d4f9a381a82 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 22 Aug 2024 11:02:57 +0300 Subject: [PATCH] Audio: MFCC: Fix 64 bit build issue The comp_err() trace in mfcc_init() causes an error: sof/src/audio/mfcc/mfcc.c: In function 'mfcc_init': sof/src/include/sof/audio/component.h:160:20: error: format '%u' expects argument of type 'unsigned int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=] Signed-off-by: Seppo Ingalsuo --- src/audio/mfcc/mfcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/mfcc/mfcc.c b/src/audio/mfcc/mfcc.c index 7adb33839389..bc07a5058496 100644 --- a/src/audio/mfcc/mfcc.c +++ b/src/audio/mfcc/mfcc.c @@ -84,7 +84,7 @@ static int mfcc_init(struct processing_module *mod) /* Check first that configuration blob size is sane */ if (bs > SOF_MFCC_CONFIG_MAX_SIZE) { - comp_err(dev, "mfcc_init() error: configuration blob size %u exceeds %d", + comp_err(dev, "mfcc_init() error: configuration blob size %zu exceeds %d", bs, SOF_MFCC_CONFIG_MAX_SIZE); return -EINVAL; }