mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-18 22:38:32 +03:00
Fix format string related warnings (int vs. long)
Change-Id: I924a16f03e2a099b9f8eb56746bff2b9101c6802
This commit is contained in:
@@ -40,7 +40,7 @@ static void usb_write_cb(uint8_t *arg, uint8_t status, uint32_t transferred,
|
||||
local_irq_save(x);
|
||||
bep->in_progress--;
|
||||
local_irq_restore(x);
|
||||
TRACE_DEBUG("%u: in_progress=%d\n", bep->ep, bep->in_progress);
|
||||
TRACE_DEBUG("%u: in_progress=%lu\n", bep->ep, bep->in_progress);
|
||||
|
||||
if (status != USBD_STATUS_SUCCESS)
|
||||
TRACE_ERROR("%s error, status=%d\n", __func__, status);
|
||||
@@ -79,7 +79,7 @@ int usb_refill_to_host(uint8_t ep)
|
||||
|
||||
local_irq_restore(x);
|
||||
|
||||
TRACE_DEBUG("%s (EP=0x%02x), in_progress=%d\r\n", __func__, ep, bep->in_progress);
|
||||
TRACE_DEBUG("%s (EP=0x%02x), in_progress=%lu\r\n", __func__, ep, bep->in_progress);
|
||||
|
||||
msg->dst = bep;
|
||||
|
||||
@@ -92,7 +92,7 @@ int usb_refill_to_host(uint8_t ep)
|
||||
local_irq_save(x);
|
||||
bep->in_progress--;
|
||||
local_irq_restore(x);
|
||||
TRACE_DEBUG("%02x: in_progress=%d\n", bep->ep, bep->in_progress);
|
||||
TRACE_DEBUG("%02x: in_progress=%lu\n", bep->ep, bep->in_progress);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@ static void usb_read_cb(uint8_t *arg, uint8_t status, uint32_t transferred,
|
||||
struct msgb *msg = (struct msgb *) arg;
|
||||
struct usb_buffered_ep *bep = msg->dst;
|
||||
|
||||
TRACE_DEBUG("%s (EP=%u, len=%u, q=%p)\r\n", __func__,
|
||||
TRACE_DEBUG("%s (EP=%u, len=%lu, q=%p)\r\n", __func__,
|
||||
bep->ep, transferred, &bep->queue);
|
||||
|
||||
bep->in_progress = 0;
|
||||
|
||||
@@ -109,7 +109,7 @@ void mode_trace_usart1_irq(void)
|
||||
/* Fill char into buffer */
|
||||
rbuf_write(&sim_rcv_buf, c);
|
||||
} else {
|
||||
TRACE_DEBUG("e %x st: %x\n", c, stat);
|
||||
TRACE_DEBUG("e %x st: %lx\n", c, stat);
|
||||
} /* else: error occurred */
|
||||
|
||||
char_stat = stat;
|
||||
|
||||
Reference in New Issue
Block a user