[mythtv] [PATCH] Re: policy on using 'VERBOSE' in myth

Geoffrey Hausheer ou401cru02 at sneakemail.com
Sun Aug 24 20:06:24 EDT 2003


On Sat, 23 Aug 2003 19:18:31 -0500, "Robert Kulagowski
bob-at-smalltime.com |mythtv/1.0-Allow|" <obm6hjwkzo0t at sneakemail.com>
said:
> When I first created the VERBOSE patch, I had set up the macro for a 
> bitmask.  But since I didn't have anything to track other than the 
> things I was interested in at the time, the macro was simplified to what 
> it is now.  That's also why every single routine doesn't have a VERBOSE; 
> I didn't have the time, and didn't need it everywhere.
> 
> So ends the history lesson.
> 
Okay, well, here is a patch that actually implements a useful 'VERBOSE'
command.
'--verbose' in mythbackend now takes an argument to enable different
sections.  the default is 'general', which is less verbose than it use to
be without '-v' (with some exceptions).  To enable specific options, a
comma seperated argument after  '-v' will work.  '-v all' is equivalent
to what '-v' was before the patch.

The availiable flags for 'VERBOSE' are:
VB_IMPORTANT : I haven't actually used this one yet, but it should be all
mesages that are very important but non fatal.
VB_GENERAL   : This is anything the 'normal' user might want to know
about
VB_RECORD    : Debug messages related to recording
VB_PLAYBACK  : Debug messages related to playback
VB_OSD       : Debug messages related to the OSD
VB_CHANNEL   : Debug messages related to changing channels
VB_FILE      : Debug messages related to reading/writing files

(the defulat is VB_IMPORTANT | VB_GENERAL)

I have done most of libmythtv, but haven't done much with mythbackend yet
(besides the mandatory changes).

Isaac, if you like the idea, but think this is too much to do all at
once, only the changes to libmyth, tv_play.cpp, and mythbackend are
needed.  Everything else could be added later.

.Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: verbose.patch.bz2
Type: application/unknown
Size: 6809 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20030824/e80c5415/verbose.patch.bin


More information about the mythtv-dev mailing list