comparison freeDiameter/main.c @ 502:a9a938287b49

Updated help message
author Sebastien Decugis <sdecugis@nict.go.jp>
date Wed, 18 Aug 2010 18:20:05 +0900
parents e5f06199cee7
children e1c6f45f5fcd
comparison
equal deleted inserted replaced
501:e5f06199cee7 502:a9a938287b49
257 return EINVAL; 257 return EINVAL;
258 #endif /* DEBUG */ 258 #endif /* DEBUG */
259 break; 259 break;
260 260
261 case 'g': /* Full debug for the function with this name. */ 261 case 'g': /* Full debug for the function with this name. */
262 #ifdef DEBUG
263 { 262 {
264 int l = (int)atoi(optarg); 263 int l = (int)atoi(optarg);
265 if (l) { 264 if (l) {
266 gnutls_global_set_log_function((gnutls_log_func)fd_gnutls_debug); 265 gnutls_global_set_log_function((gnutls_log_func)fd_gnutls_debug);
267 gnutls_global_set_log_level (l); 266 gnutls_global_set_log_level (l);
268 TRACE_DEBUG(INFO, "Enabled GNUTLS debug at level %d", l); 267 TRACE_DEBUG(INFO, "Enabled GNUTLS debug at level %d", l);
269 } 268 }
270 } 269 }
271 #else /* DEBUG */
272 TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature");
273 return EINVAL;
274 #endif /* DEBUG */
275 break; 270 break;
276 271
277 case 'q': /* Decrease verbosity then remove debug messages. */ 272 case 'q': /* Decrease verbosity then remove debug messages. */
278 fd_g_debug_lvl--; 273 fd_g_debug_lvl--;
279 break; 274 break;
337 " default location (" DEFAULT_CONF_PATH "/" FD_DEFAULT_CONF_FILENAME ").\n"); 332 " default location (" DEFAULT_CONF_PATH "/" FD_DEFAULT_CONF_FILENAME ").\n");
338 printf( "\nDebug:\n" 333 printf( "\nDebug:\n"
339 " These options are mostly useful for developers\n" 334 " These options are mostly useful for developers\n"
340 " -l, --dbglocale Set the locale for error messages\n" 335 " -l, --dbglocale Set the locale for error messages\n"
341 " -d, --debug Increase verbosity of debug messages\n" 336 " -d, --debug Increase verbosity of debug messages\n"
342 " -q, --quiet Decrease verbosity then remove debug messages\n"); 337 " -q, --quiet Decrease verbosity then remove debug messages\n"
338 " --dbg_gnutls <int> Enable GNU TLS debug at level <int>\n");
343 } 339 }
344 340
345 /* Terminate the application */ 341 /* Terminate the application */
346 static void fd_shutdown(int signal) 342 static void fd_shutdown(int signal)
347 { 343 {
"Welcome to our mercurial repository"