Skip to content

Commit fd184d8

Browse files
committed
correct debug print format specifiers
1 parent 293b166 commit fd184d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/io.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ enum {
147147
#endif // DISPATCH_IO_DEBUG
148148

149149
#define _dispatch_fd_debug(msg, fd, ...) \
150-
_dispatch_io_log("fd[0x%x]: " msg, fd, ##__VA_ARGS__)
150+
_dispatch_io_log("fd[0x%" PRIx64 "]: " msg, fd, ##__VA_ARGS__)
151151
#define _dispatch_op_debug(msg, op, ...) \
152152
_dispatch_io_log("op[%p]: " msg, op, ##__VA_ARGS__)
153153
#define _dispatch_channel_debug(msg, channel, ...) \
@@ -1387,7 +1387,7 @@ _dispatch_fd_entry_create_with_fd(dispatch_fd_t fd, uintptr_t hash)
13871387
// On fds lock queue
13881388
dispatch_fd_entry_t fd_entry = _dispatch_fd_entry_create(
13891389
_dispatch_io_fds_lockq);
1390-
_dispatch_fd_entry_debug("create: fd %d", fd_entry, fd);
1390+
_dispatch_fd_entry_debug("create: fd %" PRId64, fd_entry, fd);
13911391
fd_entry->fd = fd;
13921392
TAILQ_INSERT_TAIL(&_dispatch_io_fds[hash], fd_entry, fd_list);
13931393
fd_entry->barrier_queue = dispatch_queue_create(

0 commit comments

Comments
 (0)