Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_acct/acct_conf.y


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
  • extensions/app_acct/acct_conf.y

    r808 r974  
    8383       
    8484        if ( ! acct_config->conninfo) {
    85                 fd_log_debug("[app_acct] ERROR: 'ConnInfo' is missing in file '%s'.\n"
     85                fd_log_debug("[app_acct] ERROR: 'ConnInfo' is missing in file '%s'."
    8686                        " You can specify 'ConnInfo=\"\";' to use default parameters.\n", conffile);
    8787                return EINVAL;
    8888        }
    8989        if ( ! acct_config->tablename) {
    90                 fd_log_debug("[app_acct] ERROR: 'Table' value is missing in file '%s'.\n", conffile);
     90                fd_log_debug("[app_acct] ERROR: 'Table' value is missing in file '%s'.", conffile);
    9191                return EINVAL;
    9292        }
     
    9797        struct fd_list * li;
    9898               
    99         fd_log_debug("[app_acct] Configuration dump:\n");
    100         fd_log_debug(" Database:\n");
    101         fd_log_debug("   ConnInfo ...... : '%s'\n", acct_config->conninfo ?: "<null>");
    102         fd_log_debug("   Table name .... : '%s'\n", acct_config->tablename ?: "<null>");
    103         fd_log_debug("   Timestamp field : '%s'\n", acct_config->tsfield ?: "<null>");
    104         fd_log_debug("   Server name fld : '%s'\n", acct_config->srvnfield ?: "<null>");
    105         fd_log_debug(" AVPs that will be saved to the database:\n");
     99        fd_log_debug("[app_acct] Configuration dump:");
     100        fd_log_debug(" Database:");
     101        fd_log_debug("   ConnInfo ...... : '%s'", acct_config->conninfo ?: "<null>");
     102        fd_log_debug("   Table name .... : '%s'", acct_config->tablename ?: "<null>");
     103        fd_log_debug("   Timestamp field : '%s'", acct_config->tsfield ?: "<null>");
     104        fd_log_debug("   Server name fld : '%s'", acct_config->srvnfield ?: "<null>");
     105        fd_log_debug(" AVPs that will be saved to the database:");
    106106        for (li = acct_config->avps.next; li != &acct_config->avps; li = li->next) {
    107107                struct acct_conf_avp * a = (struct acct_conf_avp *)li;
     
    112112                        fd_log_debug("field '%s' ", a->field?:a->avpname);
    113113                }
    114                 fd_log_debug("as ::%s\n", diam2db_types_mapping[a->avptype]);
    115         }
    116         fd_log_debug("[app_acct] Complete.\n");
     114                fd_log_debug("as ::%s", diam2db_types_mapping[a->avptype]);
     115        }
     116        fd_log_debug("[app_acct] Complete.");
    117117        return 0;
    118118}
     
    158158        if (acct_confin == NULL) {
    159159                ret = errno;
    160                 fd_log_debug("Unable to open extension configuration file %s for reading: %s\n", conffile, strerror(ret));
     160                fd_log_debug("Unable to open extension configuration file %s for reading: %s", conffile, strerror(ret));
    161161                return ret;
    162162        }
     
    180180       
    181181        if (ploc->first_line != ploc->last_line)
    182                 fd_log_debug("%s:%d.%d-%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
     182                fd_log_debug("%s:%d.%d-%d.%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);
    183183        else if (ploc->first_column != ploc->last_column)
    184                 fd_log_debug("%s:%d.%d-%d : %s\n", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
     184                fd_log_debug("%s:%d.%d-%d : %s", conffile, ploc->first_line, ploc->first_column, ploc->last_column, s);
    185185        else
    186                 fd_log_debug("%s:%d.%d : %s\n", conffile, ploc->first_line, ploc->first_column, s);
     186                fd_log_debug("%s:%d.%d : %s", conffile, ploc->first_line, ploc->first_column, s);
    187187}
    188188
Note: See TracChangeset for help on using the changeset viewer.