From 3bc63708b4d56d00746cf0e655f65a391a088fae Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Thu, 1 Feb 2018 15:55:26 +0100 Subject: [PATCH] Remove useless newlines in SDL_Log* Trailing new line is not necessary in SDL_Log* methods. --- app/src/controlevent.c | 2 +- app/src/main.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/controlevent.c b/app/src/controlevent.c index 0babddd8..c63da32d 100644 --- a/app/src/controlevent.c +++ b/app/src/controlevent.c @@ -53,7 +53,7 @@ int control_event_serialize(const struct control_event *event, unsigned char *bu write32(&buf[13], (Uint32) event->scroll_event.vscroll); return 17; default: - SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "Unknown event type: %u\n", (unsigned) event->type); + SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION, "Unknown event type: %u", (unsigned) event->type); return 0; } } diff --git a/app/src/main.c b/app/src/main.c index b419c23d..6dc0fb32 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -67,11 +67,11 @@ static int parse_args(struct args *args, int argc, char *argv[]) { char *endptr; long value = strtol(optarg, &endptr, 0); if (*optarg == '\0' || *endptr != '\0') { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid port: %s\n", optarg); + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid port: %s", optarg); return -1; } if (value & ~0xffff) { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Port out of range: %ld\n", value); + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Port out of range: %ld", value); return -1; } args->port = (Uint16) value; @@ -81,11 +81,11 @@ static int parse_args(struct args *args, int argc, char *argv[]) { char *endptr; long value = strtol(optarg, &endptr, 0); if (*optarg == '\0' || *endptr != '\0') { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid max size: %s\n", optarg); + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Invalid max size: %s", optarg); return -1; } if (value & ~0xffff) { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Max size must be between 0 and 65535: %ld\n", value); + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Max size must be between 0 and 65535: %ld", value); return -1; } args->max_size = (Uint16) value; @@ -102,7 +102,7 @@ static int parse_args(struct args *args, int argc, char *argv[]) { args->serial = argv[index++]; } if (index < argc) { - SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Unexpected additional argument: %s\n", argv[index]); + SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Unexpected additional argument: %s", argv[index]); return -1; } return 0;