Changeset 6a1d288


Ignore:
Timestamp:
02/09/15 13:02:22 (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:
34dafcc
Parents:
065cab9
Message:

Remove some debug references to DPDK version and magic which have been removed in 1.7

This would only be a probably if the DEBUG flag was set when compiling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    r9f43919 r6a1d288  
    398398    struct rte_config * global_config;
    399399    long nb_cpu = sysconf(_SC_NPROCESSORS_ONLN);
    400    
     400
    401401    if (nb_cpu <= 0) {
    402402        perror("sysconf(_SC_NPROCESSORS_ONLN) failed. Falling back to the first core.");
     
    405405    if (nb_cpu > RTE_MAX_LCORE)
    406406        nb_cpu = RTE_MAX_LCORE;
    407    
     407
    408408    global_config = rte_eal_get_configuration();
    409    
     409
    410410    if (global_config != NULL) {
    411411        int i;
    412412        fprintf(stderr, "Intel DPDK setup\n"
    413                "---Version      : %"PRIu32"\n"
    414                "---Magic        : %"PRIu32"\n"
     413               "---Version      : %s\n"
    415414               "---Master LCore : %"PRIu32"\n"
    416415               "---LCore Count  : %"PRIu32"\n",
    417                global_config->version, global_config->magic,
     416               rte_version(),
    418417               global_config->master_lcore, global_config->lcore_count);
    419        
     418
    420419        for (i = 0 ; i < nb_cpu; i++) {
    421             fprintf(stderr, "   ---Core %d : %s\n", i, 
     420            fprintf(stderr, "   ---Core %d : %s\n", i,
    422421                   global_config->lcore_role[i] == ROLE_RTE ? "on" : "off");
    423422        }
    424        
     423
    425424        const char * proc_type;
    426425        switch (global_config->process_type) {
     
    442441        fprintf(stderr, "---Process Type : %s\n", proc_type);
    443442    }
    444    
     443
    445444}
    446445#endif
Note: See TracChangeset for help on using the changeset viewer.