diff --git a/src/net/listen.c b/src/net/listen.c index 4c73ff20c836f587d0e71dcf9997d8549c05bbe0..81d15d9f67449a6d02bebb0da216a401433c0a3b 100644 --- a/src/net/listen.c +++ b/src/net/listen.c @@ -117,13 +117,13 @@ static void send_status(struct lkt_state *srv, size_t c, int status, const char *cmd_name) { if (!status) { - LOG_INFO_SCT("COMMAND", " Command: %s", cmd_name); + LOG_INFO_SCT("COMMAND", "Command '%s'", cmd_name); send_ok(srv, c); } else { if (status == 2) - LOG_INFO_SCT("COMMAND", " Unknown command: %s", cmd_name); + LOG_INFO_SCT("COMMAND", "Unknown command '%s'", cmd_name); else - LOG_INFO_SCT("COMMAND", " Command failed: %s", cmd_name); + LOG_INFO_SCT("COMMAND", "Command failed '%s'", cmd_name); send_ack(srv, c, cmd_name); } } @@ -279,7 +279,7 @@ handle_simple_command(struct lkt_state *srv, size_t c, struct lkt_command cmd) continuation = lkt_get_continuation(srv, c); if (continuation > 0) { - LOG_INFO_SCT("NETWORK", "Client should continue from %d", continuation); + LOG_INFO_SCT("NETWORK", "Client should continue from '%d'", continuation); send_continue(srv, c, continuation); } send_status(srv, c, err, cmd.name); @@ -327,7 +327,7 @@ handle_command(struct lkt_state *srv, size_t i, struct lkt_command cmd) else err = handle_simple_command(srv, i, cmd); - LOG_INFO_SCT("COMMAND", "Command result: %s -> %d", cmd.name, err); + LOG_INFO_SCT("COMMAND", "Command result '%s' -> %d", cmd.name, err); return err; } @@ -504,7 +504,7 @@ accept_all(int listen_fd, struct pollfd *fds, size_t fds_max, size_t *fds_len) } if (*fds_len == fds_max) { - LOG_ERROR_SCT("NETWORK", "%s", "Maximum number of file descriptors reached"); + LOG_ERROR_SCT("NETWORK", "Maximum number '%ld' of file descriptors reached", fds_max); break; }