Navigation


Changeset 1303:090390e89b1d in freeDiameter


Ignore:
Timestamp:
Oct 18, 2015, 1:00:36 PM (9 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix --dbg-file and --dbg-function usage. However there is something weird on MacOS X still...

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • freeDiameterd/main.c

    r1302 r1303  
    208208                                #ifdef DEBUG
    209209                                fd_debug_one_function = optarg;
     210                                fd_g_debug_lvl = FD_LOG_DEBUG;
    210211                                #else /* DEBUG */
    211212                                fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_func feature!\n");
     
    217218                                #ifdef DEBUG
    218219                                fd_debug_one_file = basename(optarg);
     220                                fd_g_debug_lvl = FD_LOG_DEBUG;
    219221                                #else /* DEBUG */
    220222                                fprintf(stderr, "Error: must compile with DEBUG support to use --dbg_file feature!\n");
  • include/freeDiameter/libfdproto.h

    r1300 r1303  
    290290#endif /* __PRETTY_FUNCTION__ */
    291291
    292 /* A version of __FILE__ without the full path */
     292/* A version of __FILE__ without the full path. This is specific to each C file being compiled */
    293293static char * file_bname = NULL;
    294294static char * file_bname_init(char * full) { file_bname = basename(full); return file_bname; }
Note: See TracChangeset for help on using the changeset viewer.