diff --git a/src/urclock.c b/src/urclock.c index 2dfef552c..fc0fbe53e 100644 --- a/src/urclock.c +++ b/src/urclock.c @@ -1566,7 +1566,7 @@ static int ur_initstruct(const PROGRAMMER *pgm, const AVRPART *p) { uint64_t urclockID; if((rc = readUrclockID(pgm, p, &urclockID)) == -1) return rc; - term_out("%0*lx", 2*ur.idlen, urclockID), first=0; + term_out("%0*llx", 2*ur.idlen, (unsigned long long) urclockID), first=0; } if(havemetadata) { if(ur.showdate || ur.showall) { diff --git a/src/xbee.c b/src/xbee.c index f94a80b65..378cfc9d0 100644 --- a/src/xbee.c +++ b/src/xbee.c @@ -247,8 +247,8 @@ static void xbeeStatsAdd(struct XBeeStaticticsSummary *summary, static void xbeeStatsSummarise(struct XBeeStaticticsSummary const *summary) { - pmsg_notice(" Minimum response time: %lu.%06lu\n", summary->minimum.tv_sec, summary->minimum.tv_usec); - pmsg_notice(" Maximum response time: %lu.%06lu\n", summary->maximum.tv_sec, summary->maximum.tv_usec); + pmsg_notice(" Minimum response time: %lu.%06lu\n", summary->minimum.tv_sec, (unsigned long) summary->minimum.tv_usec); + pmsg_notice(" Maximum response time: %lu.%06lu\n", summary->maximum.tv_sec, (unsigned long) summary->maximum.tv_usec); struct timeval average; @@ -261,7 +261,7 @@ static void xbeeStatsSummarise(struct XBeeStaticticsSummary const *summary) average.tv_sec += usecs / 1000000; average.tv_usec = usecs % 1000000; - pmsg_notice(" Average response time: %lu.%06lu\n", average.tv_sec, average.tv_usec); + pmsg_notice(" Average response time: %lu.%06lu\n", average.tv_sec, (unsigned long) average.tv_usec); } static void XBeeBootSessionInit(struct XBeeBootSession *xbs) {