Code

dpdkstat: Changed log severity to Error
authorTaras Chornyi <tarasx.chornyi@intel.com>
Mon, 26 Sep 2016 09:37:01 +0000 (10:37 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Sep 2016 09:37:01 +0000 (10:37 +0100)
src/dpdkstat.c

index dc3e7dfd4b58e749f29e954a9e79b58ce6556156..145f96b7c7a09eacdd4c0516bc3a3ca31cf1b852 100644 (file)
@@ -152,10 +152,8 @@ static int dpdk_config(oconfig_item_t *ci) {
    */
   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",
+    ERROR("dpdkstat: error in shm_init, %s",
           sstrerror(errno, errbuf, sizeof(errbuf)));
     return -1;
   }