@@ -35,7 +35,7 @@ module_ext_init_decode(struct comp_dev *dev, struct module_config *dst,
3535 const struct ipc4_module_init_ext_object * obj ;
3636
3737 if (* size < sizeof (ext_init )) {
38- comp_err (dev , "Size too small for ext init %u < %u " ,
38+ comp_err (dev , "Size too small for ext init %zu < %zu " ,
3939 * size , sizeof (ext_init ));
4040 return NULL ;
4141 }
@@ -47,15 +47,15 @@ module_ext_init_decode(struct comp_dev *dev, struct module_config *dst,
4747
4848 /* Check if there is space for the object header */
4949 if ((unsigned char * )(obj + 1 ) - data > * size ) {
50- comp_err (dev , "ext init obj overflow, %u > %u " ,
50+ comp_err (dev , "ext init obj overflow, %u > %zu " ,
5151 (unsigned char * )(obj + 1 ) - data , * size );
5252 return NULL ;
5353 }
5454 /* Calculate would be next object position and check if current object fits */
5555 next_obj = (const struct ipc4_module_init_ext_object * )
5656 (((uint32_t * ) (obj + 1 )) + obj -> object_words );
5757 if ((unsigned char * )next_obj - data > * size ) {
58- comp_err (dev , "ext init object array overflow, %u > %u " ,
58+ comp_err (dev , "ext init object array overflow, %u > %zu " ,
5959 (unsigned char * )obj - data , * size );
6060 return NULL ;
6161 }
@@ -67,7 +67,7 @@ module_ext_init_decode(struct comp_dev *dev, struct module_config *dst,
6767 (const struct ipc4_module_init_ext_obj_dp_data * )(obj + 1 );
6868
6969 if (obj -> object_words * sizeof (uint32_t ) < sizeof (* dp_data )) {
70- comp_err (dev , "dp_data object too small %u < %u " ,
70+ comp_err (dev , "dp_data object too small %zu < %zu " ,
7171 obj -> object_words * sizeof (uint32_t ), sizeof (* dp_data ));
7272 return NULL ;
7373 }
0 commit comments