[MPlayer-dev-eng] [PATCH] printf --> mp_msg in libvo/font_load.c

Ivan Kalvachev ivan at cacad.com
Sun Nov 7 15:59:50 CET 2004


On Sat, 6 Nov 2004 16:38:48 +0100
Diego Biurrun <diego at biurrun.de> wrote:

> Hi!
> 
> While looking for places with excessive verbosity I came across the
> bitmap font parser which still printfs quite a bit of things to the
> console.  I moved a few of those messages to verbose level and
> converted the printfs to mp_msg calls.  The patch looks pretty trivial
> to me, still I would be happy if someone checked if I used the correct
> MSGT_ and MSGL_.
> 
> If nobody protests I'll commit this in the next few days.
> 
> Diego
> 
> 

There are a lot of msg-es that you have put as INFO, the most obiously wrong one is this:

+              mp_msg(MSGT_OSD, MSGL_INFO, "error in font desc: end<start for char '%c'\n",chr);
                                     ^^^^___^^^^^
Look again and all messages that are errors should output MSGL_ERR. (they usually invoke "goto fail_out;");
MSG_INFO should be only on these that are shown at normal work.
I think you got the verbose ok (DBG)
The non fatal errors are MSGL_WARN.


Wish You Best
   Ivan Kalvachev
  iive
 




More information about the MPlayer-dev-eng mailing list