Navigation


Changeset 1027:0117a7746b21 in freeDiameter for extensions/rt_redirect


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

Location:
extensions/rt_redirect
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/rt_redirect/redir_fwd.c

    r1019 r1027  
    122122                                                                        &id, &len, &secure, &port, &l4, &proto),
    123123                                                        {
    124                                                                 TRACE_DEBUG(INFO, "Received an invalid Redirect-Host AVP value ('%.*s'), ignored", ahdr->avp_value->os.len, ahdr->avp_value->os.data);
     124                                                                TRACE_DEBUG(INFO, "Received an invalid Redirect-Host AVP value ('%.*s'), ignored", (int)ahdr->avp_value->os.len, ahdr->avp_value->os.data);
    125125                                                                break;
    126126                                                        } );
     
    128128                                                /* Now check if the transport & protocol are supported */
    129129                                                if (proto && (proto != 'd')) {
    130                                                         TRACE_DEBUG(FULL, "Ignored unsupported non-Diameter Redirect-Host AVP (%.*s)", ahdr->avp_value->os.len, ahdr->avp_value->os.data);
     130                                                        TRACE_DEBUG(FULL, "Ignored unsupported non-Diameter Redirect-Host AVP (%.*s)", (int)ahdr->avp_value->os.len, ahdr->avp_value->os.data);
    131131                                                        free(id);
    132132                                                        break;
    133133                                                }
    134134                                                if (l4 && (l4 == IPPROTO_UDP)) {
    135                                                         TRACE_DEBUG(FULL, "Ignored unsupported UDP Redirect-Host AVP (%.*s)", ahdr->avp_value->os.len, ahdr->avp_value->os.data);
     135                                                        TRACE_DEBUG(FULL, "Ignored unsupported UDP Redirect-Host AVP (%.*s)", (int)ahdr->avp_value->os.len, ahdr->avp_value->os.data);
    136136                                                        free(id);
    137137                                                        break;
  • extensions/rt_redirect/redir_out.c

    r740 r1027  
    173173                        cmp = fd_os_almostcasesrch(cand->diamid, cand->diamidlen, e->data.host.s, e->data.host.l, NULL);
    174174                        if (!cmp) {
    175                                 TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (previous ALL_HOST Redirect originated from this peer)", msg, cand->diamidlen, cand->diamid, FD_SCORE_SENT_REDIRECT);
     175                                TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (previous ALL_HOST Redirect originated from this peer)", msg, (int)cand->diamidlen, cand->diamid, FD_SCORE_SENT_REDIRECT);
    176176                                cand->score += FD_SCORE_SENT_REDIRECT;
    177177                                c_oh = cand;
     
    182182                cmp = fd_os_cmp(cand->diamid, cand->diamidlen, e->from.s, e->from.l);
    183183                if (!cmp) {
    184                         TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (previous Redirect received from this peer)", msg, cand->diamidlen, cand->diamid, FD_SCORE_SENT_REDIRECT);
     184                        TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (previous Redirect received from this peer)", msg, (int)cand->diamidlen, cand->diamid, FD_SCORE_SENT_REDIRECT);
    185185                        cand->score += FD_SCORE_SENT_REDIRECT;
    186186                }
     
    206206                       
    207207                        if (cmp == 0) {
    208                                 TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (rule t:%d @%p)", msg, cand->diamidlen, cand->diamid, redirects_usages[e->type].score, e->type, e);
     208                                TRACE_DEBUG(FULL, "Redirect msg %p: peer '%.*s' += %d (rule t:%d @%p)", msg, (int)cand->diamidlen, cand->diamid, redirects_usages[e->type].score, e->type, e);
    209209                                cand->score += redirects_usages[e->type].score;
    210210                                break;
Note: See TracChangeset for help on using the changeset viewer.