Skip to content

Commit

Permalink
Audio: MFCC: Fix 64 bit build issue
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
singalsu committed Aug 22, 2024
1 parent 1009ba7 commit dcf7a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/mfcc/mfcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dcf7a03

Please sign in to comment.