Skip to content

Commit

Permalink
fix log message format
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Jun 16, 2024
1 parent 132898c commit 739efc6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ww/managers/socket_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,16 @@ static bool redirectPortUdp(unsigned int port, unsigned int to)

static bool resetIptables(bool safe_mode)
{
char msg[] = "SocketManager: clearing iptables nat rules\n";

if (safe_mode)
{
char msg[] = "SocketManager: clearing iptables nat rules\n";
ssize_t _ = write(STDOUT_FILENO, msg, sizeof(msg));
(void) _;
}
else
{
char msg[] = "SocketManager: clearing iptables nat rules";
LOGD(msg);
}

Expand Down

0 comments on commit 739efc6

Please sign in to comment.