Change some strings

This commit is contained in:
twinaphex 2016-10-22 04:52:46 +02:00
parent 3334060b03
commit d6db2fe227
3 changed files with 6 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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);
}