comparison 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
comparison
equal deleted inserted replaced
1302:d8c998e7c535 1303:090390e89b1d
205 break; 205 break;
206 206
207 case 'f': /* Full debug for the function with this name. */ 207 case 'f': /* Full debug for the function with this name. */
208 #ifdef DEBUG 208 #ifdef DEBUG
209 fd_debug_one_function = optarg; 209 fd_debug_one_function = optarg;
210 fd_g_debug_lvl = FD_LOG_DEBUG;
210 #else /* DEBUG */ 211 #else /* DEBUG */
211 fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_func feature!\n"); 212 fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_func feature!\n");
212 return EINVAL; 213 return EINVAL;
213 #endif /* DEBUG */ 214 #endif /* DEBUG */
214 break; 215 break;
215 216
216 case 'F': /* Full debug for the file with this name. */ 217 case 'F': /* Full debug for the file with this name. */
217 #ifdef DEBUG 218 #ifdef DEBUG
218 fd_debug_one_file = basename(optarg); 219 fd_debug_one_file = basename(optarg);
220 fd_g_debug_lvl = FD_LOG_DEBUG;
219 #else /* DEBUG */ 221 #else /* DEBUG */
220 fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_file feature!\n"); 222 fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_file feature!\n");
221 return EINVAL; 223 return EINVAL;
222 #endif /* DEBUG */ 224 #endif /* DEBUG */
223 break; 225 break;
"Welcome to our mercurial repository"