Fix this up

This commit is contained in:
twinaphex 2017-09-30 06:29:07 +02:00
parent 5fd05c6b56
commit ff926439ac

View File

@ -346,18 +346,22 @@ static void input_autoconfigure_connect_handler(retro_task_t *task)
if(input_autoconfigure_joypad_from_conf_internal(params, task)) if(input_autoconfigure_joypad_from_conf_internal(params, task))
{ {
RARCH_LOG("[Autoconf]: no profiles found for %s (%d/%d). Using fallback\n", RARCH_LOG("[Autoconf]: no profiles found for %s (%d/%d). Using fallback\n",
params->name, params->vid, params->pid); !string_is_empty(params->name) ? params->name : "N/A",
params->vid, params->pid);
snprintf(msg, sizeof(msg), "%s (%ld/%ld) %s.", snprintf(msg, sizeof(msg), "%s (%ld/%ld) %s.",
params->name, (long)params->vid, (long)params->pid, !string_is_empty(params->name) ? params->name : "N/A",
(long)params->vid, (long)params->pid,
msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED_FALLBACK)); msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED_FALLBACK));
} }
#else #else
RARCH_LOG("[Autoconf]: no profiles found for %s (%d/%d).\n", RARCH_LOG("[Autoconf]: no profiles found for %s (%d/%d).\n",
params->name, params->vid, params->pid); !string_is_empty(params->name) ? params->name : "N/A",
params->vid, params->pid);
snprintf(msg, sizeof(msg), "%s (%ld/%ld) %s.", snprintf(msg, sizeof(msg), "%s (%ld/%ld) %s.",
params->name, (long)params->vid, (long)params->pid, !string_is_empty(params->name) ? params->name : "N/A",
(long)params->vid, (long)params->pid,
msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED)); msg_hash_to_str(MSG_DEVICE_NOT_CONFIGURED));
#endif #endif
task_free_title(task); task_free_title(task);