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

Diego Biurrun diego at biurrun.de
Sun Nov 7 18:09:48 CET 2004


Ivan Kalvachev writes:
> On Sat, 6 Nov 2004 16:38:48 +0100
> Diego Biurrun <diego at biurrun.de> wrote:
> 
> > 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.
> 
> 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.

OK, thanks for the review, here is the next try.

Diego


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: font_load.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20041107/68c9e6ed/attachment.asc>


More information about the MPlayer-dev-eng mailing list