Merge pull request #8397 from retro-wertz/fix_log

[LOG] Fix alignment
This commit is contained in:
Twinaphex 2019-03-03 02:58:54 +01:00 committed by GitHub
commit 5aecb345e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2396,11 +2396,11 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
runtime_log_convert_usec2hms(libretro_core_runtime_usec, &hours, &minutes, &seconds); runtime_log_convert_usec2hms(libretro_core_runtime_usec, &hours, &minutes, &seconds);
n = snprintf(log, sizeof(log), n = snprintf(log, sizeof(log),
"Content ran for a total of: %02u hours, %02u minutes, %02u seconds.\n ", "Content ran for a total of: %02u hours, %02u minutes, %02u seconds.",
hours, minutes, seconds); hours, minutes, seconds);
if ((n < 0) || (n >= PATH_MAX_LENGTH)) if ((n < 0) || (n >= PATH_MAX_LENGTH))
n = 0; /* Just silence any potential gcc warnings... */ n = 0; /* Just silence any potential gcc warnings... */
RARCH_LOG(log); RARCH_LOG("%s\n",log);
/* Only write to file if logging is enabled *and* content has run /* Only write to file if logging is enabled *and* content has run
* for a non-zero length of time */ * for a non-zero length of time */