projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in src/network.c
[collectd.git]
/
src
/
dpdkstat.c
diff --git
a/src/dpdkstat.c
b/src/dpdkstat.c
index
7ef1179
..
0005d09
100644
(file)
--- a/
src/dpdkstat.c
+++ b/
src/dpdkstat.c
@@
-32,8
+32,8
@@
#include "collectd.h"
#include "collectd.h"
-#include "common.h"
-#include "utils
_
dpdk.h"
+#include "
utils/common/
common.h"
+#include "utils
/dpdk/
dpdk.h"
#include <rte_config.h>
#include <rte_ethdev.h>
#include <rte_config.h>
#include <rte_ethdev.h>
@@
-125,9
+125,8
@@
static int dpdk_stats_preinit(void) {
int ret = dpdk_helper_init(g_shm_name, sizeof(dpdk_stats_ctx_t), &g_hc);
if (ret != 0) {
int ret = dpdk_helper_init(g_shm_name, sizeof(dpdk_stats_ctx_t), &g_hc);
if (ret != 0) {
- char errbuf[ERR_BUF_SIZE];
ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
- g_shm_name,
sstrerror(errno, errbuf, sizeof(errbuf))
);
+ g_shm_name,
STRERRNO
);
return ret;
}
return ret;
}
@@
-446,9
+445,8
@@
static int dpdk_stats_reinit_helper() {
int ret;
ret = dpdk_helper_init(g_shm_name, data_size, &g_hc);
if (ret != 0) {
int ret;
ret = dpdk_helper_init(g_shm_name, data_size, &g_hc);
if (ret != 0) {
- char errbuf[ERR_BUF_SIZE];
ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
ERROR("%s: failed to initialize %s helper(error: %s)", DPDK_STATS_PLUGIN,
- g_shm_name,
sstrerror(errno, errbuf, sizeof(errbuf))
);
+ g_shm_name,
STRERRNO
);
return ret;
}
return ret;
}