Carl Eugen Hoyos (12019-12-16):
> From f164e22f185d6a3e69d3376246a41a6958dba215 Mon Sep 17 00:00:00 2001
> From: Carl Eugen Hoyos <ceffm...@gmail.com>
> Date: Mon, 16 Dec 2019 21:02:19 +0100
> Subject: [PATCH] lavu/log: Do not print pointer addresses for loglevel <
>  debug.
> 
> ---
>  libavutil/log.c | 16 ++++++++++++----
>  1 file changed, 12 insertions(+), 4 deletions(-)

It could make sense, but I think not exactly like that.

Right now, at loglevel info, we have:

[something @ 0x42] Info

And at loglevel debug, we have:

[something @ 0x42] Info
[something @ 0x42] Debug

With your change, that would become respectively:

(i) [something  Info

(d) [something] Info
(d) [something @ 0x42] Debug

It think it would be better to have:

(i) [something] Info

(d) [something @ 0x42] Info
(d) [something @ 0x42] Debug

In practice, it means testing av_log_level rather than level to
determine whether the address should be printed. That way, if the
address is needed (to distinguish different objects of the same type, as
Michael pointed), it can be: it is treating the address part itself as
level debug.

Also, maybe verbose rather than debug. I am not sure.

Regards,

-- 
  Nicolas George

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to