Skip to content

Commit d088224

Browse files
RedSoxFanddevault
authored andcommitted
common/ipc-client: remove ipc recv timeout log
This just removes the ipc recv timeout log statement in `ipc_recv_set_timeout`. The `tv_sec` field of `struct timeval` has varying types and/or sizes depending on the platform and architecture. On some of these, the current format string will cause compilation errors. Additionally, the log statement is not extremely useful and the function is currently only used by swaymsg, which has a hardcoded log level that will prevent it from even being shown, so there is no point in even keeping it.
1 parent 260ea42 commit d088224

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

common/ipc-client.c

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ bool ipc_set_recv_timeout(int socketfd, struct timeval tv) {
7474
sway_log_errno(SWAY_ERROR, "Failed to set ipc recv timeout");
7575
return false;
7676
}
77-
sway_log(SWAY_DEBUG, "ipc recv timeout set to %ld.%06ld",
78-
tv.tv_sec, tv.tv_usec);
7977
return true;
8078
}
8179

0 commit comments

Comments
 (0)