From d6db2fe227f7851d3d7650b186528a79e2dc9c66 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 22 Oct 2016 04:52:46 +0200 Subject: [PATCH] Change some strings --- input/drivers_joypad/linuxraw_joypad.c | 6 ++++-- input/drivers_joypad/udev_joypad.c | 2 +- input/input_autodetect.c | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/input/drivers_joypad/linuxraw_joypad.c b/input/drivers_joypad/linuxraw_joypad.c index fea290356a..5e7a7eee81 100644 --- a/input/drivers_joypad/linuxraw_joypad.c +++ b/input/drivers_joypad/linuxraw_joypad.c @@ -102,9 +102,11 @@ static bool linuxraw_joypad_init_pad(const char *path, struct linuxraw_joypad *p if (g_hotplug) { - char msg[512] = {0}; + char msg[512]; - snprintf(msg, sizeof(msg), "Device #%u (%s) connected.", + msg[0] = '\0'; + + snprintf(msg, sizeof(msg), "Device connected. #%u (%s).", (unsigned)(pad - linuxraw_pads), pad->ident); runloop_msg_queue_push(msg, 0, 60, false); } diff --git a/input/drivers_joypad/udev_joypad.c b/input/drivers_joypad/udev_joypad.c index cacde5b446..e1556ccf17 100644 --- a/input/drivers_joypad/udev_joypad.c +++ b/input/drivers_joypad/udev_joypad.c @@ -366,7 +366,7 @@ static void udev_check_device(struct udev_device *dev, const char *path, bool ho msg[0] = '\0'; - snprintf(msg, sizeof(msg), "Device #%u (%s) connected.", pad, path); + snprintf(msg, sizeof(msg), "Device connected: #%u (%s).", pad, path); runloop_msg_queue_push(msg, 0, 60, false); RARCH_LOG("[udev]: %s\n", msg); } diff --git a/input/input_autodetect.c b/input/input_autodetect.c index eb6c509d87..a39c537140 100644 --- a/input/input_autodetect.c +++ b/input/input_autodetect.c @@ -338,7 +338,7 @@ void input_config_autoconfigure_disconnect(unsigned i, const char *ident) msg[0] = '\0'; - snprintf(msg, sizeof(msg), "Device disconnected: #%u (%s).", i, ident); + snprintf(msg, sizeof(msg), "Device disconnected from port #%u (%s).", i, ident); runloop_msg_queue_push(msg, 2, 60, false); RARCH_LOG("Autodetect: %s\n", msg); }