summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSehong Na <sehong.na@samsung.com>2014-05-31 12:44:46 +0900
committerSehong Na <sehong.na@samsung.com>2014-05-31 12:44:46 +0900
commit0d1076505eb0109cd6f515a1a7f067bd5bfdec62 (patch)
tree603c1818787697334e80bfe721a973acdffe1aac /include
downloadhaptic-module-tizen-0d1076505eb0109cd6f515a1a7f067bd5bfdec62.tar.gz
haptic-module-tizen-0d1076505eb0109cd6f515a1a7f067bd5bfdec62.tar.bz2
haptic-module-tizen-0d1076505eb0109cd6f515a1a7f067bd5bfdec62.zip
Diffstat (limited to 'include')
-rwxr-xr-xinclude/haptic_module_log.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/haptic_module_log.h b/include/haptic_module_log.h
new file mode 100755
index 0000000..87b27e5
--- /dev/null
+++ b/include/haptic_module_log.h
@@ -0,0 +1,34 @@
+/*
+ * haptic-module-tizen
+ * Copyright (c) 2012 Samsung Electronics Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+#ifndef __HAPTIC_MODULE_LOG_H__
+#define __HAPTIC_MODULE_LOG_H__
+
+#define FEATURE_HAPTIC_MODULE_DLOG
+
+#ifdef FEATURE_HAPTIC_MODULE_DLOG
+ #define LOG_TAG "HAPTIC_MODULE"
+ #include <dlog.h>
+ #define MODULE_LOG(fmt, args...) SLOGD(fmt, ##args)
+ #define MODULE_ERROR(fmt, args...) SLOGE(fmt, ##args)
+#else
+ #define MODULE_LOG(x, ...)
+ #define MODULE_ERROR(x, ...)
+#endif
+
+#endif //__HAPTIC_MODULE_LOG_H__