Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marvin Scholz
libaacs
Commits
b7aeaa76
Commit
b7aeaa76
authored
Jan 05, 2015
by
npzacs
Browse files
log: do not print full paths
parent
5c95d0dd
Changes
1
Show whitespace changes
Inline
Side-by-side
src/util/logging.c
View file @
b7aeaa76
...
@@ -66,9 +66,15 @@ void aacs_debug(const char *file, int line, uint32_t mask, const char *format, .
...
@@ -66,9 +66,15 @@ void aacs_debug(const char *file, int line, uint32_t mask, const char *format, .
}
}
if
(
mask
&
debug_mask
)
{
if
(
mask
&
debug_mask
)
{
const
char
*
filename
;
char
buffer
[
512
];
char
buffer
[
512
];
va_list
args
;
va_list
args
;
filename
=
strrchr
(
file
,
'/'
);
if
(
filename
)
{
file
=
filename
+
1
;
}
va_start
(
args
,
format
);
va_start
(
args
,
format
);
sprintf
(
buffer
,
"libaacs: %s:%d: %s"
,
file
,
line
,
format
);
sprintf
(
buffer
,
"libaacs: %s:%d: %s"
,
file
,
line
,
format
);
vfprintf
(
logfile
,
buffer
,
args
);
vfprintf
(
logfile
,
buffer
,
args
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment