Navigation


Changeset 1027:0117a7746b21 in freeDiameter for libfdcore/peers.c


Ignore:
Timestamp:
Apr 15, 2013, 4:17:07 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Fix a number of errors and warnings introduced/highlighted by recent commits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/peers.c

    r1010 r1027  
    424424                        snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf), "\t['%s' %u]", peer->p_hdr.info.runtime.pir_prodname, peer->p_hdr.info.runtime.pir_firmrev);
    425425        }
    426         fd_log_debug(buf);
     426        fd_log_debug("%s", buf);
    427427        if (details > FULL) {
    428428                /* Dump all info */
    429429                fd_log_debug("\tEntry origin : %s", peer->p_dbgorig?: "not set");
    430                 fd_log_debug("\tConfig flags : %s%s%s%s%s - %s%s%s",
    431                                 peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_DEFAULT ? "" :
    432                                         (peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP ? "IP." : "IPv6."),
    433                                 peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_DEFAULT ? "" :
    434                                         (peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_TCP ? "TCP." : "SCTP."),
    435                                 peer->p_hdr.info.config.pic_flags.alg ? "PrefTCP." : "",
    436                                 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_NONE ? "NoTLSok" :"",
    437                                 peer->p_hdr.info.config.pic_flags.sec & PI_SEC_TLS_OLD ? "OldTLS" :"",
    438                                 peer->p_hdr.info.config.pic_flags.exp ? "Expire." : "",
    439                                 peer->p_hdr.info.config.pic_flags.persist ? "Persist." : ""
     430                fd_log_debug("\tConfig flags : %s%s%s - %s%s - %s%s",
     431                                peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_DEFAULT ? "." :
     432                                        (peer->p_hdr.info.config.pic_flags.pro3 == PI_P3_IP ? "IP" : "IPv6"),
     433                                peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_DEFAULT ? "." :
     434                                        (peer->p_hdr.info.config.pic_flags.pro4 == PI_P4_TCP ? "TCP" : "SCTP"),
     435                                peer->p_hdr.info.config.pic_flags.alg ? "PrefTCP" : ".",
     436                                peer->p_hdr.info.config.pic_flags.sec & PI_SEC_NONE ? "NoTLSok" :".",
     437                                peer->p_hdr.info.config.pic_flags.sec & PI_SEC_TLS_OLD ? "OldTLS" :".",
     438                                peer->p_hdr.info.config.pic_flags.exp ? "Expire" : ".",
     439                                peer->p_hdr.info.config.pic_flags.persist ? "Persist" : "."
    440440                                );
    441441                fd_log_debug("\tLifetime : %d sec", peer->p_hdr.info.config.pic_lft);
Note: See TracChangeset for help on using the changeset viewer.