Navigation


Changeset 983:ab99bc1d5492 in freeDiameter for libfdcore


Ignore:
Timestamp:
Mar 17, 2013, 12:05:37 AM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Remove some additional printf

Location:
libfdcore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/config.c

    r974 r983  
    262262        /* Check that TLS private key was given */
    263263        if (! fd_g_config->cnf_sec_data.key_file) {
    264                 fprintf(stderr, "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.\n");
    265265                return EINVAL;
    266266        }
     
    295295                ret = getaddrinfo(buf, NULL, &hints, &info);
    296296                if (ret != 0) {
    297                         fprintf(stderr, "Error resolving local FQDN :\n"
     297                        TRACE_ERROR( "Error resolving local FQDN :\n"
    298298                                        " '%s' : %s\n"
    299299                                        "Please provide Identity in configuration file.\n",
     
    315315                start = strchr(fd_g_config->cnf_diamid, '.');
    316316                if ((start == NULL) || (start[1] == '\0')) {
    317                         fprintf(stderr, "Unable to extract realm from the Identity '%s'.\n"
     317                        TRACE_ERROR( "Unable to extract realm from the Identity '%s'.\n"
    318318                                        "Please fix your Identity setting or provide Realm.\n",
    319319                                        fd_g_config->cnf_diamid);
     
    329329        /* Validate some flags */
    330330        if (fd_g_config->cnf_flags.no_ip4 && fd_g_config->cnf_flags.no_ip6) {
    331                 fprintf(stderr, "IP and IPv6 cannot be disabled at the same time.\n");
     331                TRACE_ERROR( "IP and IPv6 cannot be disabled at the same time.\n");
    332332                return EINVAL;
    333333        }
    334334        if (fd_g_config->cnf_flags.no_tcp && fd_g_config->cnf_flags.no_sctp) {
    335                 fprintf(stderr, "TCP and SCTP cannot be disabled at the same time.\n");
     335                TRACE_ERROR( "TCP and SCTP cannot be disabled at the same time.\n");
    336336                return EINVAL;
    337337        }
  • libfdcore/core.c

    r974 r983  
    194194        CHECK_GNUTLS_DO( gnutls_global_init(), return EINVAL );
    195195        if ( ! gnutls_check_version(GNUTLS_VERSION) ) {
    196                 fprintf(stderr, "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 "'\n", gnutls_check_version(NULL));
    197197                return EINVAL;
    198198        } else {
     
    317317                ret = pthread_join(core_runner, &th_ret);
    318318                if (ret != 0) {
    319                         fprintf(stderr, "Unable to wait for main framework thread termination: %s\n", strerror(ret));
     319                        TRACE_ERROR( "Unable to wait for main framework thread termination: %s\n", strerror(ret));
    320320                        return ret;
    321321                }
Note: See TracChangeset for help on using the changeset viewer.