Navigation


Changeset 994:1e1d6f94cd94 in freeDiameter


Ignore:
Timestamp:
Mar 18, 2013, 9:22:07 PM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

Remove more newlines.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • include/freeDiameter/extension.h

    r984 r994  
    5252        if ((major != FD_PROJECT_VERSION_MAJOR)                                         \
    5353                || (minor != FD_PROJECT_VERSION_MINOR)) {                               \
    54                 TRACE_ERROR("This extension (" _name ") was compiled for a different version of freeDiameter.\n");      \
     54                TRACE_ERROR("This extension (" _name ") was compiled for a different version of freeDiameter.");        \
    5555                TRACE_DEBUG(INFO, "daemon %d.%d != ext %d.%d",                          \
    5656                        major, minor,                                                   \
     
    5959        }                                                                               \
    6060        if (extension_loaded) {                                                         \
    61                 TRACE_ERROR("Extension (" _name ") cannot be loaded twice!\n");         \
     61                TRACE_ERROR("Extension (" _name ") cannot be loaded twice!");           \
    6262                return ENOTSUP;                                                         \
    6363        }                                                                               \
  • libfdcore/config.c

    r983 r994  
    262262        /* Check that TLS private key was given */
    263263        if (! fd_g_config->cnf_sec_data.key_file) {
    264                 TRACE_ERROR( "Missing private key configuration for TLS. Please provide the TLS_cred configuration directive.\n");
     264                TRACE_ERROR( "Missing private key configuration for TLS. Please provide the TLS_cred configuration directive.");
    265265                return EINVAL;
    266266        }
     
    295295                ret = getaddrinfo(buf, NULL, &hints, &info);
    296296                if (ret != 0) {
    297                         TRACE_ERROR( "Error resolving local FQDN :\n"
    298                                         " '%s' : %s\n"
    299                                         "Please provide Identity in configuration file.\n",
     297                        TRACE_ERROR( "Error resolving local FQDN : '%s' : %s"
     298                                        ". Please provide Identity in configuration file.",
    300299                                        buf, gai_strerror(ret));
    301300                        return EINVAL;
     
    315314                start = strchr(fd_g_config->cnf_diamid, '.');
    316315                if ((start == NULL) || (start[1] == '\0')) {
    317                         TRACE_ERROR( "Unable to extract realm from the Identity '%s'.\n"
    318                                         "Please fix your Identity setting or provide Realm.\n",
     316                        TRACE_ERROR( "Unable to extract realm from the Identity '%s'."
     317                                        " Please fix your Identity setting or provide Realm.",
    319318                                        fd_g_config->cnf_diamid);
    320319                        return EINVAL;
     
    329328        /* Validate some flags */
    330329        if (fd_g_config->cnf_flags.no_ip4 && fd_g_config->cnf_flags.no_ip6) {
    331                 TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time.\n");
     330                TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time.");
    332331                return EINVAL;
    333332        }
    334333        if (fd_g_config->cnf_flags.no_tcp && fd_g_config->cnf_flags.no_sctp) {
    335                 TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time.\n");
     334                TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time.");
    336335                return EINVAL;
    337336        }
  • libfdcore/core.c

    r983 r994  
    194194        CHECK_GNUTLS_DO( gnutls_global_init(), return EINVAL );
    195195        if ( ! gnutls_check_version(GNUTLS_VERSION) ) {
    196                 TRACE_ERROR( "The GNUTLS library is too old; found '%s', need '" GNUTLS_VERSION "'\n", gnutls_check_version(NULL));
     196                TRACE_ERROR( "The GNUTLS library is too old; found '%s', need '" GNUTLS_VERSION "'", gnutls_check_version(NULL));
    197197                return EINVAL;
    198198        } else {
     
    317317                ret = pthread_join(core_runner, &th_ret);
    318318                if (ret != 0) {
    319                         TRACE_ERROR( "Unable to wait for main framework thread termination: %s\n", strerror(ret));
     319                        TRACE_ERROR( "Unable to wait for main framework thread termination: %s", strerror(ret));
    320320                        return ret;
    321321                }
  • tests/tests.h

    r984 r994  
    7575/* Define the macro to pass a test */
    7676#define PASSTEST( ){                                    \
    77         TRACE_NOTICE("Test %s passed\n", __FILE__);     \
     77        TRACE_NOTICE("Test %s passed", __FILE__);       \
    7878        TRACE_DEBUG(INFO, "Test passed");               \
    7979        (void)fd_core_shutdown();                       \
     
    9292                TRACE_ERROR(                            \
    9393                        "%s:%-4d: CHECK( " #_assert " == "\
    94                                 #_val " )\n",           \
     94                                #_val " )",             \
    9595                        __FILE__,                       \
    9696                        __LINE__);                      \
     
    9898        __typeof__ (_val) __ret = (_assert);            \
    9999        if (__ret != (_val)) {                          \
    100                 FAILTEST( "%s:%d: CHECK FAILED : %s == %lx != %lx\n",   \
     100                FAILTEST( "%s:%d: CHECK FAILED : %s == %lx != %lx",     \
    101101                        __FILE__,                       \
    102102                        __LINE__,                       \
Note: See TracChangeset for help on using the changeset viewer.