diff options
author | Chris Robinson <[email protected]> | 2019-06-04 01:37:36 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-06-04 01:37:36 -0700 |
commit | 4522a51ea21813de9a59dd059c50f85d8a5116f1 (patch) | |
tree | dc41f36517a4ec6236c56b375eb37eadee8bf2e6 /Alc/helpers.cpp | |
parent | f0bc9d8a9b45a86cf0736a3f118b28ae6fdb90f0 (diff) |
Don't log the function or prefix
It's ultimately unnecessary since the message is an indicator about where it
was logged from. The message itself is generally more important than where it
was from, too.
Diffstat (limited to 'Alc/helpers.cpp')
-rw-r--r-- | Alc/helpers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp index 1a62263e..813b954f 100644 --- a/Alc/helpers.cpp +++ b/Alc/helpers.cpp @@ -336,7 +336,7 @@ const PathNamePair &GetProcBinary() else ret.fname = wstr_to_utf8(fullpath.data()); - TRACE("Got: %s, %s\n", ret.path.c_str(), ret.fname.c_str()); + TRACE("Got binary: %s, %s\n", ret.path.c_str(), ret.fname.c_str()); return ret; } @@ -356,7 +356,7 @@ void *GetSymbol(void *handle, const char *name) } -void al_print(const char *type, const char *prefix, const char *func, const char *fmt, ...) +void al_print(const char *type, const char *fmt, ...) { al::vector<char> dynmsg; char stcmsg[256]; @@ -376,7 +376,7 @@ void al_print(const char *type, const char *prefix, const char *func, const char va_end(args); std::wstring wstr{utf8_to_wstr(str)}; - fprintf(gLogFile, "AL lib: %s %s%s: %ls", type, prefix, func, wstr.c_str()); + fprintf(gLogFile, "AL lib: %s %ls", type, wstr.c_str()); fflush(gLogFile); } @@ -560,7 +560,7 @@ const PathNamePair &GetProcBinary() else ret.fname = std::string(pathname.cbegin(), pathname.cend()); - TRACE("Got: %s, %s\n", ret.path.c_str(), ret.fname.c_str()); + TRACE("Got binary: %s, %s\n", ret.path.c_str(), ret.fname.c_str()); return ret; } @@ -592,12 +592,12 @@ void *GetSymbol(void *handle, const char *name) #endif /* HAVE_DLFCN_H */ -void al_print(const char *type, const char *prefix, const char *func, const char *fmt, ...) +void al_print(const char *type, const char *fmt, ...) { va_list ap; va_start(ap, fmt); - fprintf(gLogFile, "AL lib: %s %s%s: ", type, prefix, func); + fprintf(gLogFile, "AL lib: %s ", type); vfprintf(gLogFile, fmt, ap); va_end(ap); |