From 621f57aec04bca0f28e24af356c7d72b06675dee Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Mon, 3 Apr 2023 21:59:12 +0200 Subject: [PATCH] Adding \n to a message. --- src/main.c | 2 +- src/packet/save_request.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 3b52d35..1fb9284 100644 --- a/src/main.c +++ b/src/main.c @@ -67,7 +67,7 @@ int main(int argc, char **argv) { unlink(SOCKET_ADDRESS); size_t max_size_sun_path = sizeof address.sun_path - 1; if (strlen(SOCKET_ADDRESS) > max_size_sun_path) { - fprintf(stderr, "Too big socket address"); + fprintf(stderr, "Too big socket address\n"); exit (2); } strncpy(address.sun_path, SOCKET_ADDRESS, max_size_sun_path); diff --git a/src/packet/save_request.c b/src/packet/save_request.c index de2c3c3..1e46efd 100644 --- a/src/packet/save_request.c +++ b/src/packet/save_request.c @@ -110,7 +110,7 @@ msPacketSaveRequestSendResponse(struct mCoreThread *threadContext) { pthread_mutex_lock(data->mutexSaveRequests); requestsLen = data->saveRequestsLen; if (!requestsLen) { - printf("Somehow the queue of saveRequests got exhausted, this should not happen."); + printf("Somehow the queue of saveRequests got exhausted, this should not happen.\n"); goto unlock_ms_packet_save_request_send_response; } struct msCoreController *coreController = data->coreController;