@@ -486,7 +486,7 @@ static int data_packet_process(const struct device *dev, uint8_t *hci_buf)
486
486
bc = bt_acl_flags_bc (flags );
487
487
488
488
if (len + sizeof (* hdr ) > HCI_RX_BUF_SIZE ) {
489
- LOG_ERR ("Event buffer too small. %u > %u" ,
489
+ LOG_ERR ("Event buffer too small. %zu > %u" ,
490
490
len + sizeof (* hdr ),
491
491
HCI_RX_BUF_SIZE );
492
492
return - ENOMEM ;
@@ -517,7 +517,7 @@ static int iso_data_packet_process(const struct device *dev, uint8_t *hci_buf)
517
517
}
518
518
519
519
if (len + sizeof (* hdr ) > HCI_RX_BUF_SIZE ) {
520
- LOG_ERR ("Event buffer too small. %u > %u" ,
520
+ LOG_ERR ("Event buffer too small. %zu > %u" ,
521
521
len + sizeof (* hdr ),
522
522
HCI_RX_BUF_SIZE );
523
523
return - ENOMEM ;
@@ -583,7 +583,7 @@ static int event_packet_process(const struct device *dev, uint8_t *hci_buf)
583
583
struct net_buf * evt_buf ;
584
584
585
585
if (hdr -> len + sizeof (* hdr ) > HCI_RX_BUF_SIZE ) {
586
- LOG_ERR ("Event buffer too small. %u > %u" ,
586
+ LOG_ERR ("Event buffer too small. %zu > %u" ,
587
587
hdr -> len + sizeof (* hdr ),
588
588
HCI_RX_BUF_SIZE );
589
589
return - ENOMEM ;
@@ -1351,11 +1351,11 @@ static int configure_memory_usage(void)
1351
1351
}
1352
1352
#endif
1353
1353
1354
- LOG_DBG ("BT mempool size: %u , required: %u" ,
1354
+ LOG_DBG ("BT mempool size: %zu , required: %u" ,
1355
1355
sizeof (sdc_mempool ), required_memory );
1356
1356
1357
1357
if (required_memory > sizeof (sdc_mempool )) {
1358
- LOG_ERR ("Allocated memory too low: %u < %u" ,
1358
+ LOG_ERR ("Allocated memory too low: %zu < %u" ,
1359
1359
sizeof (sdc_mempool ), required_memory );
1360
1360
k_panic ();
1361
1361
/* No return from k_panic(). */
0 commit comments