diff mbox

[FFmpeg-devel] lavu/log: Also print the log level for level trace.

Message ID CAB0OVGp+nm0gakFk-J1_op_qf+OntkCqxx8xLZk4+uvudkTf2A@mail.gmail.com
State Accepted
Headers show

Commit Message

Carl Eugen Hoyos Dec. 16, 2019, 12:11 p.m. UTC
Hi!

Attached patch allows to also print the log level for level trace.

Please comment, Carl Eugen

Comments

Michael Niedermayer Dec. 16, 2019, 5:14 p.m. UTC | #1
On Mon, Dec 16, 2019 at 01:11:28PM +0100, Carl Eugen Hoyos wrote:
> Hi!
> 
> Attached patch allows to also print the log level for level trace.
> 
> Please comment, Carl Eugen

>  log.c |    2 ++
>  1 file changed, 2 insertions(+)
> e4af17c3b183b6997eeba0d090f3bf83286862b2  0001-lavu-log-Add-AV_LOG_TRACE-to-get_level_str.patch
> From 762b66a07448529564a94c1103f07790f7476c08 Mon Sep 17 00:00:00 2001
> From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
> Date: Mon, 16 Dec 2019 13:08:40 +0100
> Subject: [PATCH] lavu/log: Also print the log level for level trace.

LGTM

thx

[...]
Carl Eugen Hoyos Dec. 16, 2019, 7:58 p.m. UTC | #2
Am Mo., 16. Dez. 2019 um 18:15 Uhr schrieb Michael Niedermayer
<michael@niedermayer.cc>:
>
> On Mon, Dec 16, 2019 at 01:11:28PM +0100, Carl Eugen Hoyos wrote:
> > Hi!
> >
> > Attached patch allows to also print the log level for level trace.
> >
> > Please comment, Carl Eugen
>
> >  log.c |    2 ++
> >  1 file changed, 2 insertions(+)
> > e4af17c3b183b6997eeba0d090f3bf83286862b2  0001-lavu-log-Add-AV_LOG_TRACE-to-get_level_str.patch
> > From 762b66a07448529564a94c1103f07790f7476c08 Mon Sep 17 00:00:00 2001
> > From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
> > Date: Mon, 16 Dec 2019 13:08:40 +0100
> > Subject: [PATCH] lavu/log: Also print the log level for level trace.
>
> LGTM

Patch applied.

Thank you, Carl Eugen
diff mbox

Patch

From 762b66a07448529564a94c1103f07790f7476c08 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Date: Mon, 16 Dec 2019 13:08:40 +0100
Subject: [PATCH] lavu/log: Also print the log level for level trace.

---
 libavutil/log.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavutil/log.c b/libavutil/log.c
index 93a156b8e4..e8a0db7716 100644
--- a/libavutil/log.c
+++ b/libavutil/log.c
@@ -226,6 +226,8 @@  static const char *get_level_str(int level)
         return "quiet";
     case AV_LOG_DEBUG:
         return "debug";
+    case AV_LOG_TRACE:
+        return "trace";
     case AV_LOG_VERBOSE:
         return "verbose";
     case AV_LOG_INFO:
-- 
2.23.0