Skip to content

Commit 2dd153a

Browse files
committed
Fix build with -DDEBUG
1 parent 660c8b5 commit 2dd153a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

winsup/cygwin/gmon.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ _mcleanup(void)
219219
perror("mcount: gmon.log");
220220
return;
221221
}
222-
len = sprintf(dbuf, "[mcleanup1] kcount 0x%x ssiz %d\n",
223-
p->kcount, p->kcountsize);
222+
len = sprintf(dbuf, "[mcleanup1] kcount 0x%x ssiz %zu\n",
223+
(unsigned int) (unsigned long int) p->kcount, p->kcountsize);
224224
write(log, dbuf, len);
225225
#endif
226226
hdr = (struct gmonhdr *)&gmonhdr;
@@ -243,8 +243,8 @@ _mcleanup(void)
243243
toindex = p->tos[toindex].link) {
244244
#ifdef DEBUG
245245
len = sprintf(dbuf,
246-
"[mcleanup2] frompc 0x%x selfpc 0x%x count %d\n" ,
247-
frompc, p->tos[toindex].selfpc,
246+
"[mcleanup2] frompc 0x%x selfpc 0x%x count %zu\n" ,
247+
(unsigned int) frompc, (unsigned int) p->tos[toindex].selfpc,
248248
p->tos[toindex].count);
249249
write(log, dbuf, len);
250250
#endif

0 commit comments

Comments
 (0)