Navigation


Changeset 974:2091bf698fb1 in freeDiameter for libfdproto/dictionary.c


Ignore:
Timestamp:
Mar 15, 2013, 2:14:35 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove newlines from fd_log_debug, TRACE_DEBUG, TRACE_ERROR, and TRACE_DEBUG_ERROR
(as far as sed could find them)
with manual fixing afterwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/dictionary.c

    r972 r974  
    315315                {
    316316                        if (obj) {
    317                                 TRACE_DEBUG(FULL, "Invalid object : %p\n"
     317                                TRACE_DEBUG(FULL, "Invalid object : %p"
    318318                                                  "     obj->objeyec : %x / %x\n"
    319319                                                  "     obj->type    : %d\n"
     
    12821282                for (i=0; i<NB_LISTS_PER_OBJ; i++) {
    12831283                        if ((obj->list[i].o == NULL) && (obj->list[i].next != &obj->list[i])) {
    1284                                 fd_log_debug("%*s>%p: list[%d]:\n", indent, "", obj, i);
     1284                                fd_log_debug("%*s>%p: list[%d]:", indent, "", obj, i);
    12851285                                dump_list(&obj->list[i], parents, depth - 1, indent + 2);
    12861286                        }
     
    12911291void fd_dict_dump_object(struct dict_object * obj)
    12921292{
    1293         fd_log_debug("Dictionary object %p dump:\n", obj);
     1293        fd_log_debug("Dictionary object %p dump:", obj);
    12941294        dump_object( obj, 1, 2, 2 );
    12951295}
     
    13041304        CHECK_POSIX_DO(  pthread_rwlock_rdlock( &dict->dict_lock ), /* ignore */  );
    13051305       
    1306         fd_log_debug("######################################################\n");
    1307         fd_log_debug("###### Dumping vendors, AVPs and related rules #######\n");
     1306        fd_log_debug("######################################################");
     1307        fd_log_debug("###### Dumping vendors, AVPs and related rules #######");
    13081308       
    13091309        dump_object( &dict->dict_vendors, 0, 3, 0 );
     
    13111311                dump_object( li->o, 0, 3, 0 );
    13121312       
    1313         fd_log_debug("######          Dumping applications           #######\n");
     1313        fd_log_debug("######          Dumping applications           #######");
    13141314
    13151315        dump_object( &dict->dict_applications, 0, 1, 0 );
     
    13171317                dump_object( li->o, 0, 1, 0 );
    13181318       
    1319         fd_log_debug("######             Dumping types               #######\n");
     1319        fd_log_debug("######             Dumping types               #######");
    13201320
    13211321        dump_list( &dict->dict_types, 0, 2, 0 );
    13221322       
    1323         fd_log_debug("######      Dumping commands per name          #######\n");
     1323        fd_log_debug("######      Dumping commands per name          #######");
    13241324
    13251325        dump_list( &dict->dict_cmd_name, 0, 2, 0 );
    13261326       
    1327         fd_log_debug("######   Dumping commands per code and flags   #######\n");
     1327        fd_log_debug("######   Dumping commands per code and flags   #######");
    13281328
    13291329        dump_list( &dict->dict_cmd_code, 0, 0, 0 );
    13301330       
    1331         fd_log_debug("######             Statistics                  #######\n");
     1331        fd_log_debug("######             Statistics                  #######");
    13321332
    13331333        for (i=1; i<=DICT_TYPE_MAX; i++)
    1334                 fd_log_debug(" %5d objects of type %s\n", dict->dict_count[i], dict_obj_info[i].name);
    1335        
    1336         fd_log_debug("######################################################\n");
     1334                fd_log_debug(" %5d objects of type %s", dict->dict_count[i], dict_obj_info[i].name);
     1335       
     1336        fd_log_debug("######################################################");
    13371337       
    13381338        /* Free the rwlock */
     
    18671867                        TRACE_DEBUG(INFO, "An existing object with different non-key data was found: EEXIST");
    18681868                        if (TRACE_BOOL(INFO)) {
    1869                                 fd_log_debug("New object to insert:\n");
     1869                                fd_log_debug("New object to insert:");
    18701870                                dump_object(new, 0, 0, 3);
    1871                                 fd_log_debug("Object already in dictionary:\n");                       
     1871                                fd_log_debug("Object already in dictionary:");                 
    18721872                                dump_object(locref, 0, 0 , 3);
    18731873                        }
Note: See TracChangeset for help on using the changeset viewer.