Changeset 66baa54


Ignore:
Timestamp:
09/04/14 16:49:43 (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:
95364aa
Parents:
704229c
Message:

Print DPDK debug to stderr rather than stdout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r704229c r66baa54  
    336336    if (global_config != NULL) {
    337337        int i;
    338         printf("Intel DPDK setup\n"
     338        fprintf(stderr, "Intel DPDK setup\n"
    339339               "---Version      : %"PRIu32"\n"
    340340               "---Magic        : %"PRIu32"\n"
     
    345345       
    346346        for (i = 0 ; i < nb_cpu; i++) {
    347             printf("   ---Core %d : %s\n", i,
     347            fprintf(stderr, "   ---Core %d : %s\n", i,
    348348                   global_config->lcore_role[i] == ROLE_RTE ? "on" : "off");
    349349        }
     
    366366                proc_type = "something worse than invalid!!";
    367367        }
    368         printf("---Process Type : %s\n", proc_type);
     368        fprintf(stderr, "---Process Type : %s\n", proc_type);
    369369    }
    370370   
     
    686686         */
    687687#if DEBUG
    688     printf("Creating mempool named %s\n", format_data->mempool_name);
     688    fprintf(stderr, "Creating mempool named %s\n", format_data->mempool_name);
    689689#endif
    690690        format_data->pktmbuf_pool =
     
    764764    rte_eth_link_get(format_data->port, &link_info);
    765765#if DEBUG
    766     printf("Link status is %d %d %d\n", (int) link_info.link_status,
     766    fprintf(stderr, "Link status is %d %d %d\n", (int) link_info.link_status,
    767767            (int) link_info.link_duplex, (int) link_info.link_speed);
    768768#endif
     
    805805    if (FORMAT(libtrace)->paused == DPDK_RUNNING) {
    806806#if DEBUG     
    807         printf("Pausing port\n");
     807        fprintf(stderr, "Pausing port\n");
    808808#endif
    809809        rte_eth_dev_stop(FORMAT(libtrace)->port);
Note: See TracChangeset for help on using the changeset viewer.