Skip to content

Commit f97376d

Browse files
JasOpenSourceLucas Tanure
authored andcommitted
ASoC: clsic-alg: fix some printf format specifiers
Change-Id: I44679855a1a934c14d1fef4836d452aafde3c8f6 Signed-off-by: Jaswinder Jassal <[email protected]>
1 parent 4518295 commit f97376d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sound/soc/codecs/clsic-alg.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ static int clsic_alg_write(void *context, const void *val_buf,
378378
payload_sz = val_size - CLSIC_ALG_REG_BYTES;
379379
if ((val_size & (CLSIC_ALG_REG_BYTES - 1)) != 0) {
380380
clsic_err(clsic,
381-
"error: context %p val_buf %p, val_size %d",
381+
"error: context %p val_buf %p, val_size %zu",
382382
context, val_buf, val_size);
383383
clsic_err(clsic, "0x%x 0x%x 0x%x ",
384384
buf[CLSIC_FSM0], buf[CLSIC_FSM1], buf[CLSIC_FSM2]);
@@ -711,13 +711,13 @@ static ssize_t clsic_alg_custom_message_write(struct file *file,
711711
* size will vary depending on whether it is a fsm or bulk response.
712712
*/
713713
if (clsic_get_bulk_bit(msg_p->rsp.hdr.sbc) == 1) {
714-
clsic_dbg(clsic, "bulk ret %d err 0x%xp size 0x%x\n",
714+
clsic_dbg(clsic, "bulk ret %zd err 0x%xp size 0x%x\n",
715715
ret, msg_p->bulk_rsp.hdr.err,
716716
msg_p->bulk_rsp.hdr.bulk_sz);
717717
custom_msg->len = CLSIC_FIXED_MSG_SZ +
718718
msg_p->bulk_rsp.hdr.bulk_sz;
719719
} else {
720-
clsic_dbg(clsic, "fsm ret %d err 0x%x\n",
720+
clsic_dbg(clsic, "fsm ret %zd err 0x%x\n",
721721
ret, msg_p->rsp.hdr.err);
722722
custom_msg->len = CLSIC_FIXED_MSG_SZ;
723723
}

0 commit comments

Comments
 (0)