Skip to content

Commit bc3d8b1

Browse files
Fix -v help output for VB_STDIO & VB_FLUSH
1 parent baf1103 commit bc3d8b1

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

mythtv/libs/libmythbase/logging.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,6 +1273,8 @@ void verboseHelp()
12731273
{
12741274
VerboseDef *item = vit.value();
12751275
QString name = QString(" %1").arg(item->name, -15, ' ');
1276+
if (item->helpText.isEmpty())
1277+
continue;
12761278
cerr << name.toLocal8Bit().constData() << " - " <<
12771279
item->helpText.toLocal8Bit().constData() << endl;
12781280
}

mythtv/libs/libmythbase/verbosedefs.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,19 @@ VERBOSE_MAP(VB_RPLXQUEUE, 0x400000000LLU, true,
141141
VERBOSE_MAP(VB_DECODE, 0x800000000LLU, true,
142142
"MPEG2Fix Decode messages")
143143
VERBOSE_MAP(VB_FLUSH, 0x1000000000LLU, true,
144-
"PLEASE FILL IN DESCRIPTION!")
144+
"")
145+
/* Please do not add a description for VB_FLUSH, it
146+
should not be passed in via "-v". It is used to
147+
flush output to the standard output from console
148+
programs that have debugging enabled.
149+
*/
145150
VERBOSE_MAP(VB_STDIO, 0x2000000000LLU, true,
146-
"PLEASE FILL IN DESCRIPTION!")
151+
"")
152+
/* Please do not add a description for VB_STDIO, it
153+
should not be passed in via "-v". It is used to
154+
send output to the standard output from console
155+
programs that have debugging enabled.
156+
*/
147157
VERBOSE_MAP(VB_GPU, 0x4000000000LLU, true,
148158
"GPU Commercial Flagging messages")
149159
VERBOSE_MAP(VB_GPUAUDIO, 0x8000000000LLU, true,

0 commit comments

Comments
 (0)