Skip to content

Commit 7e9ea9c

Browse files
author
Deepika
committed
Resolved format warnings: format '%d' expects argument of type 'int', but argument 3 has type 'u32_t[-Wformat=]
1 parent 1ece5ff commit 7e9ea9c

File tree

1 file changed

+9
-9
lines changed
  • features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP

1 file changed

+9
-9
lines changed

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static void lpc_rxqueue_pbuf(struct lpc_enetdata *lpc_enetif, struct pbuf *p)
192192
LPC_EMAC->RxConsumeIndex = idx;
193193

194194
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,
196196
lpc_enetif->rx_free_descs));
197197
}
198198

@@ -215,7 +215,7 @@ s32_t lpc_rx_queue(struct netif *netif)
215215
p = pbuf_alloc(PBUF_RAW, (u16_t) EMAC_ETH_MAX_FLEN, PBUF_RAM);
216216
if (p == NULL) {
217217
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",
219219
lpc_enetif->rx_free_descs));
220220
return queued;
221221
}
@@ -341,7 +341,7 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
341341
lpc_rxqueue_pbuf(lpc_enetif, p);
342342

343343
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",
345345
lpc_enetif->prxs[idx].statusinfo));
346346

347347
p = NULL;
@@ -365,10 +365,10 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
365365

366366
/* Re-queue the pbuf for receive */
367367
p->len = origLength;
368-
lpc_rxqueue_pbuf(lpc_enetif, p);
368+
lpc_rxqueue_pbuf(lpc_enetif, p);
369369

370370
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",
372372
idx));
373373

374374
#ifdef LOCK_RX_THREAD
@@ -381,7 +381,7 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
381381
}
382382

383383
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",
385385
p, length, idx));
386386

387387
/* Save size */
@@ -479,7 +479,7 @@ static void lpc_tx_reclaim_st(struct lpc_enetdata *lpc_enetif, u32_t cidx)
479479
while (cidx != lpc_enetif->lpc_last_tx_idx) {
480480
if (lpc_enetif->txb[lpc_enetif->lpc_last_tx_idx] != NULL) {
481481
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",
483483
lpc_enetif->txb[lpc_enetif->lpc_last_tx_idx],
484484
lpc_enetif->lpc_last_tx_idx));
485485
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)
646646
}
647647

648648
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));
651651

652652
lpc_enetif->ptxd[idx].packet = (u32_t) q->payload;
653653

0 commit comments

Comments
 (0)