mirror of
https://github.com/libretro/RetroArch
synced 2025-03-25 16:44:01 +00:00
(verbosity.c) Cleanups
This commit is contained in:
parent
97fd53cd5f
commit
7aff07f6ac
22
verbosity.c
22
verbosity.c
@ -37,8 +37,8 @@
|
|||||||
|
|
||||||
/* If this is non-NULL. RARCH_LOG and friends
|
/* If this is non-NULL. RARCH_LOG and friends
|
||||||
* will write to this file. */
|
* will write to this file. */
|
||||||
static FILE *log_file;
|
static FILE *log_file = NULL;
|
||||||
static bool main_verbosity;
|
static bool main_verbosity = false;
|
||||||
|
|
||||||
void verbosity_enable(void)
|
void verbosity_enable(void)
|
||||||
{
|
{
|
||||||
@ -131,18 +131,18 @@ static aslclient asl_client;
|
|||||||
file_path_str(FILE_PATH_PROGRAM_NAME),
|
file_path_str(FILE_PATH_PROGRAM_NAME),
|
||||||
fmt,
|
fmt,
|
||||||
ap);
|
ap);
|
||||||
#elif defined(HAVE_FILE_LOGGER)
|
|
||||||
fprintf(retro_main_log_file(), "%s %s :: ",
|
|
||||||
file_path_str(FILE_PATH_PROGRAM_NAME),
|
|
||||||
tag ? tag : file_path_str(FILE_PATH_LOG_INFO));
|
|
||||||
vfprintf(retro_main_log_file(), fmt, ap);
|
|
||||||
fflush(retro_main_log_file());
|
|
||||||
#else
|
#else
|
||||||
fprintf(stderr, "%s %s :: ",
|
|
||||||
|
#ifdef HAVE_FILE_LOGGER
|
||||||
|
FILE *fp = retro_main_log_file();
|
||||||
|
#else
|
||||||
|
FILE *fp = stderr;
|
||||||
|
#endif
|
||||||
|
fprintf(fp, "%s %s :: ",
|
||||||
file_path_str(FILE_PATH_PROGRAM_NAME),
|
file_path_str(FILE_PATH_PROGRAM_NAME),
|
||||||
tag ? tag : file_path_str(FILE_PATH_LOG_INFO));
|
tag ? tag : file_path_str(FILE_PATH_LOG_INFO));
|
||||||
vfprintf(stderr, fmt, ap);
|
vfprintf(fp, fmt, ap);
|
||||||
fflush(stderr);
|
fflush(fp);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user