changeset 502:a9a938287b49

Updated help message
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 18 Aug 2010 18:20:05 +0900
parents e5f06199cee7
children 2999c874e38f
files freeDiameter/main.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/freeDiameter/main.c	Wed Aug 18 18:13:09 2010 +0900
+++ b/freeDiameter/main.c	Wed Aug 18 18:20:05 2010 +0900
@@ -259,7 +259,6 @@
 				break;
 				
 			case 'g':	/* Full debug for the function with this name.  */
-				#ifdef DEBUG
 				{
 					int l = (int)atoi(optarg);
 					if (l) {
@@ -268,10 +267,6 @@
 						TRACE_DEBUG(INFO, "Enabled GNUTLS debug at level %d", l);
 					}
 				}
-				#else /* DEBUG */
-				TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature");
-				return EINVAL;
-				#endif /* DEBUG */
 				break;
 				
 			case 'q':	/* Decrease verbosity then remove debug messages.  */
@@ -339,7 +334,8 @@
   		"  These options are mostly useful for developers\n"
   		"  -l, --dbglocale        Set the locale for error messages\n"
   		"  -d, --debug            Increase verbosity of debug messages\n"
-  		"  -q, --quiet            Decrease verbosity then remove debug messages\n");
+  		"  -q, --quiet            Decrease verbosity then remove debug messages\n"
+  		"  --dbg_gnutls <int>     Enable GNU TLS debug at level <int>\n");
 }
 
 /* Terminate the application */
"Welcome to our mercurial repository"