mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
log: make line==0 suppress the file/line/func output
Disable file/line/func output for pod debug
This commit is contained in:
parent
79fd4c941f
commit
6203fb967c
2 changed files with 2 additions and 2 deletions
|
|
@ -106,7 +106,7 @@ impl_log_logv(void *object,
|
|||
now.tv_sec & 0x1FFFFFFF, now.tv_nsec / 1000);
|
||||
|
||||
}
|
||||
if (impl->line) {
|
||||
if (impl->line && line != 0) {
|
||||
size += snprintf(p + size, len - size, "[%s:%i %s()]",
|
||||
strrchr(file, '/') + 1, line, func);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -332,7 +332,7 @@ void pw_log_log_object(enum spa_log_level level,
|
|||
const char *func,
|
||||
uint32_t flags, const void *object)
|
||||
{
|
||||
struct log_ctx ctx = { level, file, line, func, };
|
||||
struct log_ctx ctx = { level, file, 0, func, };
|
||||
if (flags & PW_LOG_OBJECT_POD) {
|
||||
const struct spa_pod *pod = object;
|
||||
log_pod_value(&ctx, 0, SPA_TYPE_ROOT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue