summaryrefslogtreecommitdiffstats
path: root/src/service
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2012-07-27 09:35:03 +0200
committerRadek Novacek <rnovacek@redhat.com>2012-07-27 09:35:03 +0200
commit171113535983029ab395341c8f8f3c92f320ea1a (patch)
tree2e7f2f064d29804666465166c114aa7f7845e134 /src/service
parent99b6e54a64d962d226679ca290117f114eaf8245 (diff)
downloadopenlmi-providers-171113535983029ab395341c8f8f3c92f320ea1a.tar.gz
openlmi-providers-171113535983029ab395341c8f8f3c92f320ea1a.tar.xz
openlmi-providers-171113535983029ab395341c8f8f3c92f320ea1a.zip
Unify logging through all providers
Needs to be ported to sfcb/pegasus standard logging, using stderr for now.
Diffstat (limited to 'src/service')
-rw-r--r--src/service/CMakeLists.txt2
-rw-r--r--src/service/util/serviceutil.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/service/CMakeLists.txt b/src/service/CMakeLists.txt
index e2a41ca..631e0c8 100644
--- a/src/service/CMakeLists.txt
+++ b/src/service/CMakeLists.txt
@@ -20,7 +20,7 @@ add_library(${LIBRARY_NAME} SHARED
)
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMPI_INCLUDE_DIR})
-target_link_libraries(${LIBRARY_NAME} ${KONKRETCMPI_LIBRARIES})
+target_link_libraries(${LIBRARY_NAME} curacommon ${KONKRETCMPI_LIBRARIES})
# Create registration file
cim_registration(${PROVIDER_NAME} ${LIBRARY_NAME} ${MOF})
diff --git a/src/service/util/serviceutil.h b/src/service/util/serviceutil.h
index 74f4786..dd8adea 100644
--- a/src/service/util/serviceutil.h
+++ b/src/service/util/serviceutil.h
@@ -28,12 +28,6 @@
#include <stdio.h>
-#ifdef DEBUG
-#define service_debug(fd, args...) fprintf(fd, args)
-#else
-#define service_debug(a, b...)
-#endif
-
#define ARRAY_SIZE(name) (sizeof(name) / sizeof(name[0]))
enum ServiceEnabledDefault { ENABLED = 2, DISABLED = 3, NOT_APPICABLE = 5};