Commit b7aeaa76 authored by npzacs's avatar npzacs
Browse files

log: do not print full paths

parent 5c95d0dd
......@@ -66,9 +66,15 @@ void aacs_debug(const char *file, int line, uint32_t mask, const char *format, .
if (mask & debug_mask) {
const char *filename;
char buffer[512];
va_list args;
filename = strrchr(file, '/');
if (filename) {
file = filename + 1;
va_start(args, format);
sprintf(buffer, "libaacs: %s:%d: %s", file, line, format);
vfprintf(logfile, buffer, args);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment