Skip to content

Commit

Permalink
Silence compiler warning when printing size_t variable
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanrueger committed May 2, 2024
1 parent 8dd0932 commit e35cacf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/updi_link.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static int updi_physical_send(const PROGRAMMER *pgm, unsigned char *buf, size_t
size_t i;
int rv;

pmsg_debug("sending %lu bytes [", len);
pmsg_debug("sending %lu bytes [", (unsigned long) len);
for (i=0; i<len; i++) {
msg_debug("0x%02x", buf[i]);
if (i<len-1) {
Expand All @@ -114,7 +114,7 @@ static int updi_physical_recv(const PROGRAMMER *pgm, unsigned char *buf, size_t
return -1;
}

pmsg_debug("received %lu bytes [", len);
pmsg_debug("received %lu bytes [", (unsigned long) len);
for (i=0; i<len; i++) {
msg_debug("0x%02x", buf[i]);
if (i<len-1) {
Expand Down

0 comments on commit e35cacf

Please sign in to comment.