Skip to content

Commit a45ba54

Browse files
committed
Fixed printf format in _dispatch_semaphore_debug()
dsema_value is of type long, and dsema_orig of type intptr_t.
1 parent d44acc0 commit a45ba54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/semaphore.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ _dispatch_semaphore_debug(dispatch_object_t dou, char *buf, size_t bufsiz)
7676
dsema->dsema_sema);
7777
#endif
7878
offset += dsnprintf(&buf[offset], bufsiz - offset,
79-
"value = %" PRId64 ", orig = %" PRId64 " }", dsema->dsema_value, dsema->dsema_orig);
79+
"value = %ld, orig = %" PRIdPTR " }", dsema->dsema_value, dsema->dsema_orig);
8080
return offset;
8181
}
8282

0 commit comments

Comments
 (0)