@@ -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