diff freeDiameterd/main.c @ 1303:090390e89b1d

Fix --dbg-file and --dbg-function usage. However there is something weird on MacOS X still...
author Sebastien Decugis <sdecugis@freediameter.net>
date Sun, 18 Oct 2015 12:00:36 +0800
parents d8c998e7c535
children 84a3c9c4b834
line wrap: on
line diff
--- a/freeDiameterd/main.c	Sun Oct 18 11:25:28 2015 +0800
+++ b/freeDiameterd/main.c	Sun Oct 18 12:00:36 2015 +0800
@@ -207,6 +207,7 @@
 			case 'f':	/* Full debug for the function with this name.  */
 				#ifdef DEBUG
 				fd_debug_one_function = optarg;
+				fd_g_debug_lvl = FD_LOG_DEBUG;
 				#else /* DEBUG */
 				fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_func feature!\n");
 				return EINVAL;
@@ -216,6 +217,7 @@
 			case 'F':	/* Full debug for the file with this name.  */
 				#ifdef DEBUG
 				fd_debug_one_file = basename(optarg);
+				fd_g_debug_lvl = FD_LOG_DEBUG;
 				#else /* DEBUG */
 				fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_file feature!\n");
 				return EINVAL;
"Welcome to our mercurial repository"