Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_radgw/rgw_conf.l


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_radgw/rgw_conf.l

    r741 r974  
    8989                                yylval->string = strdup(yytext+1);
    9090                                if (yylval->string == NULL) {
    91                                         fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     91                                        fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    9292                                        return LEX_ERROR; /* trig an error in yacc parser */
    9393                                }
     
    111111                                if (ret != 1) {
    112112                                        /* No matching: an error occurred */
    113                                         fd_log_debug("Unable to convert the value '%s' to a valid number: %s\n", yytext, strerror(errno));
     113                                        fd_log_debug("Unable to convert the value '%s' to a valid number: %s", yytext, strerror(errno));
    114114                                        return LEX_ERROR; /* trig an error in yacc parser */
    115115                                        /* Maybe we could REJECT instead of failing here? */
     
    133133                                work = strdup(yytext);
    134134                                if ( work == NULL ) {
    135                                         fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     135                                        fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    136136                                        return LEX_ERROR; /* trig an error in yacc parser */
    137137                                }
     
    141141                                        port++;
    142142                                        if (sscanf(port, "%hu]", &p) != 1) {
    143                                                 fd_log_debug("'%s' is not a valid port: %s\n", port, strerror(errno));
     143                                                fd_log_debug("'%s' is not a valid port: %s", port, strerror(errno));
    144144                                                free(work);
    145145                                                return LEX_ERROR; /* trig an error in yacc parser */
     
    153153                                        sin6 = malloc(sizeof(struct sockaddr_in6));
    154154                                        if (sin6 == NULL) {
    155                                                 fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     155                                                fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    156156                                                free(work);
    157157                                                return LEX_ERROR; /* trig an error in yacc parser */
     
    161161                                        sin6->sin6_family = AF_INET6;
    162162                                        if (inet_pton(AF_INET6, work, &sin6->sin6_addr) != 1) {
    163                                                 fd_log_debug("'%s' is not a valid IPv6 address: %s\n", work, strerror(errno));
     163                                                fd_log_debug("'%s' is not a valid IPv6 address: %s", work, strerror(errno));
    164164                                                free(work);
    165165                                                free(sin6);
     
    173173                                        sin = malloc(sizeof(struct sockaddr_in));
    174174                                        if (sin == NULL) {
    175                                                 fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     175                                                fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    176176                                                free(work);
    177177                                                return LEX_ERROR; /* trig an error in yacc parser */
     
    181181                                        sin->sin_family = AF_INET;
    182182                                        if (inet_pton(AF_INET, work, &sin->sin_addr) != 1) {
    183                                                 fd_log_debug("'%s' is not a valid IP address: %s\n", work, strerror(errno));
     183                                                fd_log_debug("'%s' is not a valid IP address: %s", work, strerror(errno));
    184184                                                free(work);
    185185                                                free(sin);
     
    213213                                        if (ret != 1) {
    214214                                                /* No matching: an error occurred */
    215                                                 fd_log_debug("Unable to convert the value '%s' to a valid number: %s\n", yytext, strerror(errno));
     215                                                fd_log_debug("Unable to convert the value '%s' to a valid number: %s", yytext, strerror(errno));
    216216                                                return LEX_ERROR; /* trig an error in yacc parser */
    217217                                                /* Maybe we could REJECT instead of failing here? */
     
    227227                                        sin = malloc(sizeof(struct sockaddr_in));
    228228                                        if (sin == NULL) {
    229                                                 fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     229                                                fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    230230                                                return LEX_ERROR; /* trig an error in yacc parser */
    231231                                        }
     
    234234                                        sin->sin_family = AF_INET;
    235235                                        if (inet_pton(AF_INET, yytext, &sin->sin_addr) != 1) {
    236                                                 fd_log_debug("'%s' is not a valid IP address: %s\n", yytext, strerror(errno));
     236                                                fd_log_debug("'%s' is not a valid IP address: %s", yytext, strerror(errno));
    237237                                                free(sin);
    238238                                                return LEX_ERROR; /* trig an error in yacc parser */
     
    247247                                        sin6 = malloc(sizeof(struct sockaddr_in6));
    248248                                        if (sin6 == NULL) {
    249                                                 fd_log_debug("Unable to allocate memory: %s\n", strerror(errno));
     249                                                fd_log_debug("Unable to allocate memory: %s", strerror(errno));
    250250                                                return LEX_ERROR; /* trig an error in yacc parser */
    251251                                        }
     
    254254                                        sin6->sin6_family = AF_INET6;
    255255                                        if (inet_pton(AF_INET6, yytext, &sin6->sin6_addr) != 1) {
    256                                                 fd_log_debug("'%s' is not a valid IPv6 address: %s\n", yytext, strerror(errno));
     256                                                fd_log_debug("'%s' is not a valid IPv6 address: %s", yytext, strerror(errno));
    257257                                                free(sin6);
    258258                                                return LEX_ERROR; /* trig an error in yacc parser */
     
    271271        /* Unrecognized character */
    272272<*>.                    {
    273                                 fd_log_debug("Unrecognized text on line %d col %d: '%s'.\n", yylloc->first_line, yylloc->first_column, yytext);
     273                                fd_log_debug("Unrecognized text on line %d col %d: '%s'.", yylloc->first_line, yylloc->first_column, yytext);
    274274                                return LEX_ERROR;
    275275                        }
Note: See TracChangeset for help on using the changeset viewer.