Mercurial > hg > freeDiameter
comparison freeDiameter/main.c @ 205:ff9ade352076
Simplified use of --dbg_file option
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Fri, 12 Feb 2010 18:29:08 +0900 |
parents | 2b2f78036749 |
children | c32f48b89cfb |
comparison
equal
deleted
inserted
replaced
204:2465698b9f31 | 205:ff9ade352076 |
---|---|
231 case 'd': /* Increase verbosity of debug messages. */ | 231 case 'd': /* Increase verbosity of debug messages. */ |
232 fd_g_debug_lvl++; | 232 fd_g_debug_lvl++; |
233 break; | 233 break; |
234 | 234 |
235 case 'f': /* Full debug for the function with this name. */ | 235 case 'f': /* Full debug for the function with this name. */ |
236 #ifdef DEBUG | |
236 fd_debug_one_function = optarg; | 237 fd_debug_one_function = optarg; |
238 #else /* DEBUG */ | |
239 TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature"); | |
240 return EINVAL; | |
241 #endif /* DEBUG */ | |
237 break; | 242 break; |
238 | 243 |
239 case 'F': /* Full debug for the file with this name. */ | 244 case 'F': /* Full debug for the file with this name. */ |
240 fd_debug_one_file = optarg; | 245 #ifdef DEBUG |
246 fd_debug_one_file = basename(optarg); | |
247 #else /* DEBUG */ | |
248 TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature"); | |
249 return EINVAL; | |
250 #endif /* DEBUG */ | |
241 break; | 251 break; |
242 | 252 |
243 case 'q': /* Decrease verbosity then remove debug messages. */ | 253 case 'q': /* Decrease verbosity then remove debug messages. */ |
244 fd_g_debug_lvl--; | 254 fd_g_debug_lvl--; |
245 break; | 255 break; |