@@ -192,7 +192,7 @@ static void lpc_rxqueue_pbuf(struct lpc_enetdata *lpc_enetif, struct pbuf *p)
192
192
LPC_EMAC -> RxConsumeIndex = idx ;
193
193
194
194
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
195
- ("lpc_rxqueue_pbuf: pbuf packet queued: %p (free desc=%d )\n" , p ,
195
+ ("lpc_rxqueue_pbuf: pbuf packet queued: %p (free desc=%" U32_F " )\n" , p ,
196
196
lpc_enetif -> rx_free_descs ));
197
197
}
198
198
@@ -215,7 +215,7 @@ s32_t lpc_rx_queue(struct netif *netif)
215
215
p = pbuf_alloc (PBUF_RAW , (u16_t ) EMAC_ETH_MAX_FLEN , PBUF_RAM );
216
216
if (p == NULL ) {
217
217
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
218
- ("lpc_rx_queue: could not allocate RX pbuf (free desc=%d )\n" ,
218
+ ("lpc_rx_queue: could not allocate RX pbuf (free desc=%" U32_F " )\n" ,
219
219
lpc_enetif -> rx_free_descs ));
220
220
return queued ;
221
221
}
@@ -341,7 +341,7 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
341
341
lpc_rxqueue_pbuf (lpc_enetif , p );
342
342
343
343
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
344
- ("lpc_low_level_input: Packet dropped with errors (0x%x )\n" ,
344
+ ("lpc_low_level_input: Packet dropped with errors (%" X32_F " )\n" ,
345
345
lpc_enetif -> prxs [idx ].statusinfo ));
346
346
347
347
p = NULL ;
@@ -365,10 +365,10 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
365
365
366
366
/* Re-queue the pbuf for receive */
367
367
p -> len = origLength ;
368
- lpc_rxqueue_pbuf (lpc_enetif , p );
368
+ lpc_rxqueue_pbuf (lpc_enetif , p );
369
369
370
370
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
371
- ("lpc_low_level_input: Packet index %d dropped for OOM\n" ,
371
+ ("lpc_low_level_input: Packet index %" U32_F " dropped for OOM\n" ,
372
372
idx ));
373
373
374
374
#ifdef LOCK_RX_THREAD
@@ -381,7 +381,7 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
381
381
}
382
382
383
383
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
384
- ("lpc_low_level_input: Packet received: %p, size %d (index=%d )\n" ,
384
+ ("lpc_low_level_input: Packet received: %p, size %" U32_F " (index=%" U32_F " )\n" ,
385
385
p , length , idx ));
386
386
387
387
/* Save size */
@@ -479,7 +479,7 @@ static void lpc_tx_reclaim_st(struct lpc_enetdata *lpc_enetif, u32_t cidx)
479
479
while (cidx != lpc_enetif -> lpc_last_tx_idx ) {
480
480
if (lpc_enetif -> txb [lpc_enetif -> lpc_last_tx_idx ] != NULL ) {
481
481
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
482
- ("lpc_tx_reclaim_st: Freeing packet %p (index %d )\n" ,
482
+ ("lpc_tx_reclaim_st: Freeing packet %p (index %" U32_F " )\n" ,
483
483
lpc_enetif -> txb [lpc_enetif -> lpc_last_tx_idx ],
484
484
lpc_enetif -> lpc_last_tx_idx ));
485
485
pbuf_free (lpc_enetif -> txb [lpc_enetif -> lpc_last_tx_idx ]);
@@ -646,8 +646,8 @@ static err_t lpc_low_level_output(struct netif *netif, struct pbuf *p)
646
646
}
647
647
648
648
LWIP_DEBUGF (UDP_LPC_EMAC | LWIP_DBG_TRACE ,
649
- ("lpc_low_level_output: pbuf packet(%p) sent, chain#=%d ,"
650
- " size = %d (index=%d )\n" , q -> payload , dn , q -> len , idx ));
649
+ ("lpc_low_level_output: pbuf packet(%p) sent, chain#=%" S32_F " ,"
650
+ " size = %d (index=%" U32_F " )\n" , q -> payload , dn , q -> len , idx ));
651
651
652
652
lpc_enetif -> ptxd [idx ].packet = (u32_t ) q -> payload ;
653
653
0 commit comments