Skip to content

Commit 97e5dc4

Browse files
triplefrokhinip
authored andcommitted
Fixed printf format in _dispatch_semaphore_debug()
dsema_value is of type long, and dsema_orig of type intptr_t. Signed-off-by: Kim Topley <ktopley@apple.com>
1 parent c54cbca commit 97e5dc4

File tree

2 files changed

+1
-1
lines changed

2 files 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

File renamed without changes.

0 commit comments

Comments
 (0)