Changeset 75e088f


Ignore:
Timestamp:
02/05/15 19:14:33 (6 years ago)
Author:
Richard Sanger <rsangerarj@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
368a1ae
Parents:
04bf7c5
Message:

Print DPDK debug output to stderr instead of stdout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r1960910 r75e088f  
    201201 */
    202202
    203 /* Print verbose messages to stdout */
    204 #define DEBUG 1
     203/* Print verbose messages to stderr */
     204#define DEBUG 0
    205205
    206206/* Use clock_gettime() for nanosecond resolution rather than gettimeofday()
     
    351351                if (format_data->nb_blacklist >= sizeof (format_data->blacklist)
    352352                                / sizeof (format_data->blacklist[0])) {
    353                         printf("Warning: too many devices to blacklist consider"
     353                        fprintf(stderr, "Warning: too many devices to blacklist consider"
    354354                                        " increasing BLACK_LIST_SIZE");
    355355                        break;
     
    625625        if (my_cpu < 0) {
    626626                /* If we can assign to a core on the same numa node */
    627                 printf("Using pci card on numa_node%d\n", format_data->nic_numa_node);
     627                fprintf(stderr, "Using pci card on numa_node%d\n", format_data->nic_numa_node);
    628628                if(format_data->nic_numa_node >= 0) {
    629629                        int max_node_cpu = -1;
     
    735735    struct rte_eth_dev_info dev_info;
    736736    rte_eth_dev_info_get(0, &dev_info);
    737     printf("Device port=0\n\tmin_rx_bufsize=%d\n\tmax_rx_pktlen=%d\n\tmax rx queues=%d\n\tmax tx queues=%d",
     737    fprintf(stderr, "Device port=0\n\tmin_rx_bufsize=%d\n\tmax_rx_pktlen=%d\n\tmax rx queues=%d\n\tmax tx queues=%d",
    738738                (int) dev_info.min_rx_bufsize, (int) dev_info.max_rx_pktlen, (int) dev_info.max_rx_queues, (int) dev_info.max_tx_queues);
    739739
     
    12061206         */
    12071207#if DEBUG
    1208     printf("Creating mempool named %s\n", format_data->mempool_name);
     1208    fprintf(stderr, "Creating mempool named %s\n", format_data->mempool_name);
    12091209#endif
    12101210    format_data->pktmbuf_pool =
     
    12431243    }
    12441244#if DEBUG
    1245     printf("Doing dev configure\n");
     1245    fprintf(stderr, "Doing dev configure\n");
    12461246#endif
    12471247    /* Initialise the TX queue a minimum value if using this port for
     
    12591259    for (i=0; i < rx_queues; i++) {
    12601260#if DEBUG
    1261     printf("Doing queue configure\n");
     1261    fprintf(stderr, "Doing queue configure\n");
    12621262#endif
    12631263
Note: See TracChangeset for help on using the changeset viewer.