Changeset 8ed07df for lib


Ignore:
Timestamp:
03/02/18 15:08:56 (3 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, etsilive, master, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance
Children:
817713f
Parents:
29cafc0
Message:

Fix warnings / errors due to using deprecated DPDK functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dpdk.c

    ra6f2d1d r8ed07df  
    214214        int matches;
    215215        assert(str);
    216         matches = sscanf(str, "%4"SCNx16":%2"SCNx8":%2"SCNx8".%2"SCNx8"-%ld",
     216        matches = sscanf(str, "%8"SCNx32":%2"SCNx8":%2"SCNx8".%2"SCNx8"-%ld",
    217217                         &addr->domain, &addr->bus, &addr->devid,
    218218                         &addr->function, core);
     
    428428
    429429#if DEBUG
    430         rte_set_log_level(RTE_LOG_DEBUG);
     430        rte_log_set_global_level(RTE_LOG_DEBUG);
    431431#else
    432         rte_set_log_level(RTE_LOG_WARNING);
     432        rte_log_set_global_level(RTE_LOG_WARNING);
    433433#endif
    434434
     
    816816 * @param cb_arg The dpdk_format_data_t structure associated with the format
    817817 */
    818 static void dpdk_lsc_callback(uint8_t port, enum rte_eth_event_type event,
    819                               void *cb_arg) {
     818static int dpdk_lsc_callback(uint16_t port, enum rte_eth_event_type event,
     819                              void *cb_arg, void *retparam UNUSED) {
    820820        struct dpdk_format_data_t * format_data = cb_arg;
    821821        struct rte_eth_link link_info;
     
    852852        }
    853853#endif
     854        return 0;
    854855}
    855856
Note: See TracChangeset for help on using the changeset viewer.