core: Fix max DEBUG_LEVEL incongruence on 5 vs 9
authorReynaldo H. Verdejo Pinochet <r.verdejo@partner.samsung.com>
Thu, 10 Oct 2013 15:30:27 +0000 (08:30 -0700)
committerReynaldo H. Verdejo Pinochet <r.verdejo@partner.samsung.com>
Thu, 10 Oct 2013 20:06:14 +0000 (13:06 -0700)
In the docs and the autocompletion logic the maximum
value jumped incongruently between 5 and 9.

docs/manual/appendix-checklist.xml
gst/gst.c
tests/misc/test-gstreamer-completion.sh

index 4c41957..538ba5e 100644 (file)
@@ -90,7 +90,7 @@
          <para>
           <option>--gst-debug-level=<replaceable>LEVEL</replaceable></option> 
          will set the default debug level (which can range from 0 (no
-          output) to 5 (everything)).
+          output) to 9 (everything)).
          </para>
        </listitem>
        <listitem>
index 0c947f9..47f1f2a 100644 (file)
--- a/gst/gst.c
+++ b/gst/gst.c
@@ -240,7 +240,7 @@ gst_init_get_option_group (void)
         NULL},
     {"gst-debug-level", 0, 0, G_OPTION_ARG_CALLBACK,
           (gpointer) parse_goption_arg,
-          N_("Default debug level from 1 (only error) to 5 (anything) or "
+          N_("Default debug level from 1 (only error) to 9 (anything) or "
               "0 for no output"),
         N_("LEVEL")},
     {"gst-debug", 0, 0, G_OPTION_ARG_CALLBACK, (gpointer) parse_goption_arg,
index cb2e29c..2aae688 100755 (executable)
@@ -37,9 +37,9 @@ _assert_expected() {
 test_gst_inspect_completion '' -- --version --gst-debug-level coreelements fakesrc
 test_gst_inspect_completion --ver -- --version
 test_gst_inspect_completion --gst-debug-le -- --gst-debug-level
-test_gst_inspect_completion --gst-debug-level '' -- 0 1 2 3 4 5
-test_gst_inspect_completion --gst-debug-level = -- 0 1 2 3 4 5
-test_gst_inspect_completion --gst-debug-level= -- 0 1 2 3 4 5
+test_gst_inspect_completion --gst-debug-level '' -- 0 1 2 3 4 5 6 7 8 9
+test_gst_inspect_completion --gst-debug-level = -- 0 1 2 3 4 5 6 7 8 9
+test_gst_inspect_completion --gst-debug-level= -- 0 1 2 3 4 5 6 7 8 9
 test_gst_inspect_completion --gst-debug-level=4 -- 4
 test_gst_inspect_completion coreel -- coreelements
 test_gst_inspect_completion fake -- fakesrc fakesink
@@ -67,9 +67,9 @@ test_gst_launch_completion() {
 test_gst_launch_completion '' -- --eos-on-shutdown --gst-debug-level fakesrc fakesink
 test_gst_launch_completion --mes -- --messages
 test_gst_launch_completion --gst-debug-le -- --gst-debug-level
-test_gst_launch_completion --gst-debug-level '' -- 0 1 2 3 4 5
-test_gst_launch_completion --gst-debug-level = -- 0 1 2 3 4 5
-test_gst_launch_completion --gst-debug-level= -- 0 1 2 3 4 5
+test_gst_launch_completion --gst-debug-level '' -- 0 1 2 3 4 5 6 7 8 9
+test_gst_launch_completion --gst-debug-level = -- 0 1 2 3 4 5 6 7 8 9
+test_gst_launch_completion --gst-debug-level= -- 0 1 2 3 4 5 6 7 8 9
 test_gst_launch_completion --gst-debug-level=4 -- 4
 test_gst_launch_completion fak -- fakesrc fakesink
 test_gst_launch_completion --messages fak -- fakesrc fakesink