From 67bb65f3811333843ef7c4f8e16608e1ce828e50 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 21 Nov 2023 19:36:18 +0100 Subject: [PATCH] Fix output formatting --- References/SteamDeck/virt_deck.c | 4 ++-- logic.c | 2 +- virt_ds4.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/References/SteamDeck/virt_deck.c b/References/SteamDeck/virt_deck.c index 1801dd0..40891d9 100644 --- a/References/SteamDeck/virt_deck.c +++ b/References/SteamDeck/virt_deck.c @@ -274,10 +274,10 @@ int main() { // if (res >= 0) { // ++counter; // } else { -// fprintf(stderr, "Error sending HID report: %d", res); +// fprintf(stderr, "Error sending HID report: %d\n", res); // } // } else { -// printf("PS4 output not enabled"); +// printf("PS4 output not enabled\n"); // } } diff --git a/logic.c b/logic.c index 8e50bde..ed42eb3 100644 --- a/logic.c +++ b/logic.c @@ -60,7 +60,7 @@ int logic_create(logic_t *const logic) { logic->gamepad_output = GAMEPAD_OUTPUT_EVDEV; } } else { - fprintf(stderr, "Unable to initialize Asus RC71L MCU: %d", init_platform_res); + fprintf(stderr, "Unable to initialize Asus RC71L MCU: %d\n", init_platform_res); } return 0; diff --git a/virt_ds4.c b/virt_ds4.c index 7c7ff22..a749d84 100644 --- a/virt_ds4.c +++ b/virt_ds4.c @@ -710,7 +710,7 @@ void *virt_ds4_thread_func(void *ptr) { if (logic->gamepad_output == GAMEPAD_OUTPUT_DS4) { const int res = send_data(fd, logic); if (res < 0) { - fprintf(stderr, "Error sending HID report: %d", res); + fprintf(stderr, "Error sending HID report: %d\n", res); } } }