[Openvas-commits] r5730 - in trunk/openvas-client: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Oct 26 13:03:33 CET 2009


Author: felix
Date: 2009-10-26 13:03:32 +0100 (Mon, 26 Oct 2009)
New Revision: 5730

Modified:
   trunk/openvas-client/ChangeLog
   trunk/openvas-client/src/omp-cli.c
Log:
* src/omp-cli.c (main): Respect verbosity flag. If command is given
as xml and verbosity flag is not set, print only response (or error).


Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog	2009-10-26 11:29:33 UTC (rev 5729)
+++ trunk/openvas-client/ChangeLog	2009-10-26 12:03:32 UTC (rev 5730)
@@ -1,3 +1,8 @@
+2009-10-26  Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
+	* src/omp-cli.c (main): Respect verbosity flag. If command is given
+	as xml and verbosity flag is not set, print only response (or error).
+
 2009-10-26  Michael Wiegand <michael.wiegand at intevation.de>
 
 	Post-release version bump.

Modified: trunk/openvas-client/src/omp-cli.c
===================================================================
--- trunk/openvas-client/src/omp-cli.c	2009-10-26 11:29:33 UTC (rev 5729)
+++ trunk/openvas-client/src/omp-cli.c	2009-10-26 12:03:32 UTC (rev 5730)
@@ -817,7 +817,8 @@
           getchar ();
         }
 
-      printf ("Sending to manager: %s\n", cmd_xml);
+      if (be_verbose)
+        printf ("Sending to manager: %s\n", cmd_xml);
 
       if (openvas_server_send (&(connection->session), cmd_xml) == -1)
         {
@@ -836,7 +837,8 @@
           exit (EXIT_FAILURE);
         }
 
-      printf ("Got response:\n");
+      if (be_verbose)
+        printf ("Got response:\n");
       print_entity (stdout, entity);
       printf ("\n");
 



More information about the Openvas-commits mailing list