X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdpdkstat.c;h=debcfef4c0facdec71c0332a6e96aa2ff1dde339;hb=be126043c2be20399d7670fe194645292018bde0;hp=cfe993cbeeb2d547537eb201be55738f4b15e5f6;hpb=2b4445ea9b4b978468d75864f98e8137ba628dec;p=collectd.git diff --git a/src/dpdkstat.c b/src/dpdkstat.c index cfe993cb..debcfef4 100644 --- a/src/dpdkstat.c +++ b/src/dpdkstat.c @@ -253,7 +253,7 @@ static int dpdk_helper_stats_count_get(dpdk_helper_ctx_t *phc) { } static int dpdk_stats_get_size(dpdk_helper_ctx_t *phc) { - return (dpdk_helper_data_size_get(phc) - sizeof(dpdk_stats_ctx_t)); + return dpdk_helper_data_size_get(phc) - sizeof(dpdk_stats_ctx_t); } int dpdk_helper_command_handler(dpdk_helper_ctx_t *phc, enum DPDK_CMD cmd) { @@ -376,9 +376,9 @@ static int dpdk_stats_counters_dispatch(dpdk_helper_ctx_t *phc) { char dev_name[64]; if (ctx->config.port_name[i][0] != 0) { - ssnprintf(dev_name, sizeof(dev_name), "%s", ctx->config.port_name[i]); + snprintf(dev_name, sizeof(dev_name), "%s", ctx->config.port_name[i]); } else { - ssnprintf(dev_name, sizeof(dev_name), "port.%d", i); + snprintf(dev_name, sizeof(dev_name), "port.%d", i); } DEBUG(" === Dispatch stats for port %d (name=%s; stats_count=%d)", i,