Navigation


Changeset 979:b90cb4c07160 in freeDiameter


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

Remove more newlines.

Files:
21 edited

Legend:

Unmodified
Added
Removed
  • doc/dbg_interactive.py.sample

    r782 r979  
    5353# Note: the python version does not support printf-like argument list. The formating should be done in python.
    5454#       See SWIG documentation about varargs functions for more information.
    55 fd_log_debug_fstr(None, "3 + 4 = %d\n" % (7))
     55fd_log_debug_fstr(None, "3 + 4 = %d" % (7))
    5656
    5757
  • extensions/app_acct/acct_conf.y

    r974 r979  
    8484        if ( ! acct_config->conninfo) {
    8585                fd_log_debug("[app_acct] ERROR: 'ConnInfo' is missing in file '%s'."
    86                         " You can specify 'ConnInfo=\"\";' to use default parameters.\n", conffile);
     86                        " You can specify 'ConnInfo=\"\";' to use default parameters.", conffile);
    8787                return EINVAL;
    8888        }
  • extensions/app_acct/acct_records.c

    r974 r979  
    127127        if (records->nball == records->nbunmap) {
    128128                fd_log_debug("The received ACR does not contain any AVP from the configuration file."
    129                                 "This is an invalid situation. Please fix your configuration file.\n"
    130                                 "One way to ensure this does not happen is to include Session-Id in the database.\n");
     129                                " This is an invalid situation. Please fix your configuration file."
     130                                " One way to ensure this does not happen is to include Session-Id in the database.");
    131131                acct_rec_empty(records);
    132132                return EINVAL;
  • extensions/app_radgw/radius.c

    r974 r979  
    328328        for (i = 0; i < msg->radius.attr_used; i++) {
    329329                struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);
    330                 fd_log_debug("    - Type: 0x%02hhx (%s)\n       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
     330                fd_log_debug("    - Type: 0x%02hhx (%s)       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
    331331                radius_msg_dump_attr_val(attr);
    332332        }
     
    335335                for (i = msg->ps_first; i < msg->ps_first + msg->ps_nb; i++) {
    336336                        struct radius_attr_hdr *attr = (struct radius_attr_hdr *)(msg->radius.buf + msg->radius.attr_pos[i]);
    337                         fd_log_debug("    - Type: 0x%02hhx (%s)\n       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
     337                        fd_log_debug("    - Type: 0x%02hhx (%s)       Len: %-3hhu", attr->type, rgw_msg_attrtype_str(attr->type), attr->length);
    338338                        radius_msg_dump_attr_val(attr);
    339339                }
     
    355355                                           auth, MD5_MAC_LEN);
    356356                if (attr == NULL) {
    357                         printf("WARNING: Could not add "
    358                                "Message-Authenticator\n");
     357                        printf("WARNING: Could not add Message-Authenticator\n");
    359358                        return -1;
    360359                }
     
    693692                if (tmp->type == RADIUS_ATTR_MESSAGE_AUTHENTICATOR) {
    694693                        if (attr != NULL) {
    695                                 printf("Multiple Message-Authenticator "
    696                                        "attributes in RADIUS message\n");
     694                                printf("Multiple Message-Authenticator attributes in RADIUS message\n");
    697695                                return 1;
    698696                        }
  • extensions/app_radgw/rgw_worker.c

    r974 r979  
    164164                if ((diam_msg == NULL) || ( fd_msg_parse_rules(diam_msg, fd_g_config->cnf_dict, NULL) ) ) {
    165165                        fd_log_debug("[radgw] No or invalid Diameter message was generated after processing the RADIUS command %hhd (%s)."
    166                                         " It may indicate a gateway configuration problem, or implementation issue in a plugin.\n",
     166                                        " It may indicate a gateway configuration problem, or implementation issue in a plugin.",
    167167                                        msg->radius.hdr->code, rgw_msg_code_str(msg->radius.hdr->code));
    168168                        /* We should also dump the conflicting rule here to help debug? */
     
    280280
    281281                if (pb) {
    282                         TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS!\n Please use debug.rgwx for more information.", pb);
     282                        TRACE_DEBUG(INFO, "[radgw] WARNING: %d mandatory AVP in the Diameter answer have not been translated to RADIUS! Please use debug.rgwx for more information.", pb);
    283283                }
    284284        }
  • extensions/app_radgw/rgwx_auth.c

    r974 r979  
    14501450                                        if (ahdr->avp_value->u32 != 3) {
    14511451                                                fd_log_debug("[auth.rgwx] Received Diameter answer with Auth-Request-Type set to %d (%s) from server %.*s, session %.*s."
    1452                                                                 "  This may cause interoperability problems with RADIUS.\n",
     1452                                                                "  This may cause interoperability problems with RADIUS.",
    14531453                                                                ahdr->avp_value->u32,
    14541454                                                                (ahdr->avp_value->u32 == 1) ? "AUTHENTICATE_ONLY" :
  • extensions/app_radgw/rgwx_echodrop.c

    r974 r979  
    220220                        {
    221221                                fd_log_debug(   "[echodrop.rgwx] The extension is configured to echo some attributes from this message, but no session object has been created for it (yet)."
    222                                                 "  Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes.\n"
    223                                                 "  Please use debug.rgwx to retrieve more information.\n" );
     222                                                " Please check your configuration file and include a session-generating extension BEFORE calling echodrop.rgwx to echo attributes."
     223                                                " Please use debug.rgwx to retrieve more information." );
    224224                                return EINVAL;
    225225                        } );
  • extensions/dbg_interactive/dbg_interactive.i

    r788 r979  
    7070static const char * wrapper_error_txt; /* if NULL, use strerror(errno) */
    7171#define DI_ERROR(code, pycode, str) {   \
    72         fd_log_debug("[dbg_interactive] ERROR: %s: %s\n", __PRETTY_FUNCTION__, str ? str : strerror(code)); \
     72        fd_log_debug("[dbg_interactive] ERROR: %s: %s", __PRETTY_FUNCTION__, str ? str : strerror(code)); \
    7373        wrapper_errno = code;           \
    7474        wrapper_errno_py = pycode;      \
  • extensions/dbg_interactive/dictionary.i

    r972 r979  
    240240                for (i=0; i < n; i++)
    241241                        fd_log_debug("%02.2X", $self->data[i]);
    242                 fd_log_debug("] '%.*s%s'\n", n, $self->data, n == LEN_MAX ? "..." : "");
     242                fd_log_debug("] '%.*s%s'", n, $self->data, n == LEN_MAX ? "..." : "");
    243243        }
    244244        %cstring_output_allocate_size(char ** outbuffer, size_t * outlen, free(*$1));
  • extensions/dbg_interactive/dispatch.i

    r741 r979  
    4747       
    4848        if (!pycb) {
    49                 fd_log_debug("Internal error: missing the callback!\n");
     49                fd_log_debug("Internal error: missing the callback!");
    5050                return ENOTSUP;
    5151        }
     
    6363        /* The result is supposedly composed of: [ ret, *msg, *action ] */
    6464        if ((result == NULL) || (!PyList_Check(result)) || (PyList_Size(result) != 3)) {
    65                 fd_log_debug("Error: The Python callback did not return [ ret, msg, action ].\n");
     65                fd_log_debug("Error: The Python callback did not return [ ret, msg, action ].");
    6666                ret = EINVAL;
    6767                goto out;
     
    7070        /* Convert the return values */
    7171        if (!SWIG_IsOK(SWIG_AsVal_int(PyList_GetItem(result, 0), &ret))) {
    72                 fd_log_debug("Error: Cannot convert the first return value to integer.\n");
     72                fd_log_debug("Error: Cannot convert the first return value to integer.");
    7373                ret = EINVAL;
    7474                goto out;
    7575        }
    7676        if (ret) {
    77                 TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)\n", ret, strerror(ret));
     77                TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)", ret, strerror(ret));
    7878                goto out;
    7979        }
    8080       
    8181        if (!SWIG_IsOK(SWIG_ConvertPtr(PyList_GetItem(result, 1), (void *)msg, SWIGTYPE_p_msg, SWIG_POINTER_DISOWN))) {
    82                 fd_log_debug("Error: Cannot convert the second return value to message.\n");
     82                fd_log_debug("Error: Cannot convert the second return value to message.");
    8383                ret = EINVAL;
    8484                goto out;
     
    8686       
    8787        if (!SWIG_IsOK(SWIG_AsVal_int(PyList_GetItem(result, 2), (int *)action))) {
    88                 fd_log_debug("Error: Cannot convert the third return value to integer.\n");
     88                fd_log_debug("Error: Cannot convert the third return value to integer.");
    8989                ret = EINVAL;
    9090                goto out;
    9191        }
    9292       
    93         TRACE_DEBUG(FULL, "Python callback return: *action = %d\n", *action);
     93        TRACE_DEBUG(FULL, "Python callback return: *action = %d", *action);
    9494out:   
    9595        Py_XDECREF(result);
  • extensions/dbg_interactive/lists.i

    r741 r979  
    5757        /* For debug, show the values of the list */
    5858        void dump() {
    59                 fd_log_debug("list: %p\n", $self);
    60                 fd_log_debug("  - next: %p\n", $self->next);
    61                 fd_log_debug("  - prev: %p\n", $self->prev);
    62                 fd_log_debug("  - head: %p\n", $self->head);
    63                 fd_log_debug("  - o   : %p\n", $self->o);
     59                fd_log_debug("list: %p", $self);
     60                fd_log_debug("  - next: %p", $self->next);
     61                fd_log_debug("  - prev: %p", $self->prev);
     62                fd_log_debug("  - head: %p", $self->head);
     63                fd_log_debug("  - o   : %p", $self->o);
    6464        }
    6565        /* Insert before/after wrapper */
  • extensions/dbg_interactive/messages.i

    r740 r979  
    5151       
    5252        if (!l) {
    53                 fd_log_debug("Internal error! Python callback disappeared...\n");
     53                fd_log_debug("Internal error! Python callback disappeared...");
    5454                return;
    5555        }
     
    7272                /* The callback is supposed to return a message or NULL */
    7373                if (!SWIG_IsOK(SWIG_ConvertPtr(result, (void *)msg, SWIGTYPE_p_msg, SWIG_POINTER_DISOWN))) {
    74                         fd_log_debug("Error: Cannot convert the return value to message.\n");
     74                        fd_log_debug("Error: Cannot convert the return value to message.");
    7575                        *msg = NULL;
    7676                }
  • extensions/dbg_interactive/peers.i

    r740 r979  
    4545       
    4646        if (!data) {
    47                 TRACE_DEBUG(INFO, "Internal error: missing callback\n");
     47                TRACE_DEBUG(INFO, "Internal error: missing callback");
    4848                return;
    4949        }
     
    119119       
    120120        if (!validate_cb2_py) {
    121                 fd_log_debug("Internal error: missing the callback2!\n");
     121                fd_log_debug("Internal error: missing the callback2!");
    122122                return ENOTSUP;
    123123        }
     
    132132        /* The result is an integer */
    133133        if ((result == NULL) || !SWIG_IsOK(SWIG_AsVal_int(result, &ret))) {
    134                 fd_log_debug("Error: The Python callback did not return an integer.\n");
     134                fd_log_debug("Error: The Python callback did not return an integer.");
    135135                ret = EINVAL;
    136136                goto out;
     
    150150       
    151151        if (!validate_cb_py) {
    152                 fd_log_debug("Internal error: missing the callback!\n");
     152                fd_log_debug("Internal error: missing the callback!");
    153153                return ENOTSUP;
    154154        }
     
    163163        /* The result is supposedly -1, 1, or a cb2 */
    164164        if (result == NULL) {
    165                 fd_log_debug("Error: The Python callback did not return a value.\n");
     165                fd_log_debug("Error: The Python callback did not return a value.");
    166166                ret = EINVAL;
    167167                goto out;
     
    171171                if (cb2) {
    172172                        if (validate_cb2_py && (validate_cb2_py != result)) {
    173                                 fd_log_debug("Only 1 register callback2 is supported currently\n");
     173                                fd_log_debug("Only 1 register callback2 is supported currently");
    174174                                ret = ENOTSUP;
    175175                                goto out;
     
    185185        } else { /* In this case, the return value must be -1, 0, or 1 */
    186186                if (!SWIG_IsOK(SWIG_AsVal_int(result, auth))) {
    187                         fd_log_debug("Error: Cannot convert the return value to integer.\n");
     187                        fd_log_debug("Error: Cannot convert the return value to integer.");
    188188                        ret = EINVAL;
    189189                        goto out;
  • extensions/dbg_interactive/routing.i

    r740 r979  
    8383%extend rtd_candidate {
    8484        void dump() {
    85                 fd_log_debug("candidate %p\n", $self);
    86                 fd_log_debug("  id : %s\n",  $self->diamid);
    87                 fd_log_debug("  rlm: %s\n", $self->realm);
    88                 fd_log_debug("  sc : %d\n", $self->score);
     85                fd_log_debug("candidate %p", $self);
     86                fd_log_debug("  id : %s",  $self->diamid);
     87                fd_log_debug("  rlm: %s", $self->realm);
     88                fd_log_debug("  sc : %d", $self->score);
    8989        }
    9090}
     
    9999       
    100100        if (!pycb) {
    101                 fd_log_debug("Internal error: missing the callback!\n");
     101                fd_log_debug("Internal error: missing the callback!");
    102102                return ENOTSUP;
    103103        }
     
    113113        /* The result is supposedly composed of: [ ret, *msg ] */
    114114        if ((result == NULL) || (!PyList_Check(result)) || (PyList_Size(result) != 2)) {
    115                 fd_log_debug("Error: The Python callback did not return [ ret, msg ].\n");
     115                fd_log_debug("Error: The Python callback did not return [ ret, msg ].");
    116116                ret = EINVAL;
    117117                goto out;
     
    120120        /* Convert the return values */
    121121        if (!SWIG_IsOK(SWIG_AsVal_int(PyList_GetItem(result, 0), &ret))) {
    122                 fd_log_debug("Error: Cannot convert the first return value to integer.\n");
     122                fd_log_debug("Error: Cannot convert the first return value to integer.");
    123123                ret = EINVAL;
    124124                goto out;
    125125        }
    126126        if (ret) {
    127                 TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)\n", ret, strerror(ret));
     127                TRACE_DEBUG(INFO, "The Python callback returned the error code %d (%s)", ret, strerror(ret));
    128128                goto out;
    129129        }
    130130       
    131131        if (!SWIG_IsOK(SWIG_ConvertPtr(PyList_GetItem(result, 1), (void *)msg, SWIGTYPE_p_msg, SWIG_POINTER_DISOWN))) {
    132                 fd_log_debug("Error: Cannot convert the second return value to message.\n");
     132                fd_log_debug("Error: Cannot convert the second return value to message.");
    133133                ret = EINVAL;
    134134                goto out;
     
    183183       
    184184        if (!pycb) {
    185                 fd_log_debug("Internal error: missing the callback!\n");
     185                fd_log_debug("Internal error: missing the callback!");
    186186                return ENOTSUP;
    187187        }
     
    198198        /* The result is supposedly composed of: [ ret, *msg ] */
    199199        if (result == NULL){
    200                 fd_log_debug("Error: The Python callback raised an exception.\n");
     200                fd_log_debug("Error: The Python callback raised an exception.");
    201201                ret = EINVAL;
    202202                goto out;
     
    205205        /* Convert the return values */
    206206        if (!SWIG_IsOK(SWIG_AsVal_int(result, &ret))) {
    207                 fd_log_debug("Error: Cannot convert the return value to integer.\n");
     207                fd_log_debug("Error: Cannot convert the return value to integer.");
    208208                ret = EINVAL;
    209209                goto out;
  • extensions/dbg_interactive/sessions.i

    r740 r979  
    4343        PyObject *result;
    4444        if (!cb) {
    45                 fd_log_debug("Internal error: missing callback object!\n");
     45                fd_log_debug("Internal error: missing callback object!");
    4646                return;
    4747        }
     
    128128                #if 0
    129129                if (n) {
    130                         fd_log_debug("A new session has been created\n");
     130                        fd_log_debug("A new session has been created");
    131131                } else {
    132                         fd_log_debug("A session with same id already existed\n");
     132                        fd_log_debug("A session with same id already existed");
    133133                }
    134134                #endif /* 0 */
  • extensions/test_netemul/test_netemul.y

    r974 r979  
    8181                return EINVAL;
    8282        } else {
    83                 TRACE_DEBUG(FULL, "[test_netemul]\n  latency: %lu ms (var:%u%%)\n  duplicates: %G probability.", tne_conf.lat_avg, tne_conf.lat_dev, tne_conf.dupl_proba);
     83                TRACE_DEBUG(FULL, "[test_netemul]  latency: %lu ms (var:%u%%)  duplicates: %G probability.", tne_conf.lat_avg, tne_conf.lat_dev, tne_conf.dupl_proba);
    8484        }
    8585       
  • libfdcore/fdd.l

    r974 r979  
    5353        yylloc->last_column = yylloc->first_column + yyleng - 1;        \
    5454        fd_log_debug(                                                   \
    55                 "(%d:%d-%d:%d) matched rule %d, length=%d, txt='%s'\n", \
     55                "(%d:%d-%d:%d) matched rule %d, length=%d, txt='%s'",   \
    5656                yylloc->first_line, yylloc->first_column,               \
    5757                yylloc->last_line, yylloc->last_column,                 \
  • libfdcore/server.c

    r974 r979  
    387387                CHECK_FCT(fd_cnx_get_local_eps(&fd_g_config->cnf_endpoints));
    388388                if (FD_IS_LIST_EMPTY(&fd_g_config->cnf_endpoints)) {
    389                         TRACE_DEBUG(INFO, "Unable to find the address(es) of the local system."
    390                                         "Please use \"ListenOn\" parameter in the configuration.\n"
    391                                         "This information is required to generate the CER/CEA messages.\n");
     389                        TRACE_DEBUG(INFO, "Unable to find the address(es) of the local system. "
     390                                        "Please use \"ListenOn\" parameter in the configuration. "
     391                                        "This information is required to generate the CER/CEA messages.");
    392392                        return EINVAL;
    393393                }
  • libfdproto/dictionary.c

    r974 r979  
    315315                {
    316316                        if (obj) {
    317                                 TRACE_DEBUG(FULL, "Invalid object : %p"
    318                                                   "     obj->objeyec : %x / %x\n"
    319                                                   "     obj->type    : %d\n"
    320                                                   "     obj->objeyec : %x / %x\n"
    321                                                   "     obj->typeyec : %x / %x",
     317                                TRACE_DEBUG(FULL, "Invalid object: %p, obj->objeyec: %x/%x, obj->type: %d, obj->objeyec: %x/%x, obj->typeyec: %x/%x",
    322318                                                obj,
    323319                                                obj->objeyec, OBJECT_EYECATCHER,
  • libfdproto/messages.c

    r974 r979  
    802802        /* Check the object */
    803803        if (!VALIDATE_OBJ(obj)) {
    804                 CHECK_FCT( dump_add_str(outstr, offset, outlen, ">>> invalid object (%p)!.\n", obj) );
     804                CHECK_FCT( dump_add_str(outstr, offset, outlen, ">>> invalid object (%p)!.", obj) );
    805805                return 0;
    806806        }
  • libfdproto/sessions.c

    r974 r979  
    527527       
    528528        if (!fd_os_is_valid_os0(sid,len)) {
    529                 TRACE_DEBUG(INFO, "Warning: a Session-Id value contains \\0 chars... (len:%zd, begin:'%.*s')\n => Debug messages may be truncated.", len, len, sid);
     529                TRACE_DEBUG(INFO, "Warning: a Session-Id value contains \\0 chars... (len:%zd, begin:'%.*s') => Debug messages may be truncated.", len, len, sid);
    530530        }
    531531       
Note: See TracChangeset for help on using the changeset viewer.