projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4bce47
)
dpdkstat: Fixed issue with unused var when configured w/o debug
author
Taras Chornyi
<tarasx.chornyi@intel.com>
Thu, 22 Sep 2016 10:22:40 +0000
(11:22 +0100)
committer
Taras Chornyi
<tarasx.chornyi@intel.com>
Thu, 22 Sep 2016 10:22:40 +0000
(11:22 +0100)
Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
src/dpdkstat.c
patch
|
blob
|
history
diff --git
a/src/dpdkstat.c
b/src/dpdkstat.c
index
5842543
..
dc3e7df
100644
(file)
--- a/
src/dpdkstat.c
+++ b/
src/dpdkstat.c
@@
-147,12
+147,14
@@
static void dpdk_config_init_default(void) {
static int dpdk_config(oconfig_item_t *ci) {
int port_counter = 0;
- char errbuf[ERR_BUF_SIZE];
/* Allocate g_configuration and
* initialize a POSIX SHared Memory (SHM) object.
*/
int err = dpdk_shm_init(sizeof(dpdk_config_t));
if (err) {
+#if COLLECT_DEBUG
+ char errbuf[ERR_BUF_SIZE];
+#endif
DEBUG("dpdkstat: error in shm_init, %s",
sstrerror(errno, errbuf, sizeof(errbuf)));
return -1;