Use dlog directly instead of mm-log through mm_debug.h
[Version] 0.10.134
[Profile] Common
[Issue Type]
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-unified_20170913.3]
Change-Id: I7e77d0cb8c6043aea1417e5eaad590547858eaa4
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
AC_SUBST(DPM_CFLAGS)
AC_SUBST(DPM_LIBS)
AC_SUBST(DPM_CFLAGS)
AC_SUBST(DPM_LIBS)
+PKG_CHECK_MODULES(DLOG, dlog)
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
+
AC_ARG_ENABLE(product-tv, AC_HELP_STRING([--enable-product-tv],[enable tv defined code]),
[
case "${enableval}" in
AC_ARG_ENABLE(product-tv, AC_HELP_STRING([--enable-product-tv],[enable tv defined code]),
[
case "${enableval}" in
Name: mm-camcorder
Description: Multimedia Framework Camcorder Library
Name: mm-camcorder
Description: Multimedia Framework Camcorder Library
-Requires: gstreamer-1.0 gstreamer-base-1.0 mm-common mm-log libexif
+Requires: gstreamer-1.0 gstreamer-base-1.0 mm-common libexif
Version: $VERSION
Libs: -L${libdir} -lmmfcamcorder
Cflags: -I${includedir}/ -I${includedir}/mmf
Version: $VERSION
Libs: -L${libdir} -lmmfcamcorder
Cflags: -I${includedir}/ -I${includedir}/mmf
Name: libmm-camcorder
Summary: Camera and recorder library
Name: libmm-camcorder
Summary: Camera and recorder library
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
Release: 0
Group: Multimedia/Libraries
License: Apache-2.0
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(dpm)
BuildRequires: pkgconfig(ttrace)
BuildRequires: pkgconfig(libtzplatform-config)
BuildRequires: pkgconfig(dpm)
+BuildRequires: pkgconfig(dlog)
%description
Camera and recorder function supported library.
%description
Camera and recorder function supported library.
$(STORAGE_CFLAGS) \
$(TTRACE_CFLAGS) \
$(DPM_CFLAGS) \
$(STORAGE_CFLAGS) \
$(TTRACE_CFLAGS) \
$(DPM_CFLAGS) \
$(SYSTEMINFO_CFLAGS)
libmmfcamcorder_la_LIBADD = \
$(SYSTEMINFO_CFLAGS)
libmmfcamcorder_la_LIBADD = \
$(TBM_LIBS) \
$(TTRACE_LIBS) \
$(DPM_LIBS) \
$(TBM_LIBS) \
$(TTRACE_LIBS) \
$(DPM_LIBS) \
$(STORAGE_LIBS)
libmmfcamcorder_la_CFLAGS += -DMMF_LOG_OWNER=0x010 -D_FILE_OFFSET_BITS=64
$(STORAGE_LIBS)
libmmfcamcorder_la_CFLAGS += -DMMF_LOG_OWNER=0x010 -D_FILE_OFFSET_BITS=64
#include <ttrace.h>
#include <errno.h>
#include <restriction.h> /* device policy manager */
#include <ttrace.h>
#include <errno.h>
#include <restriction.h> /* device policy manager */
#include "mm_camcorder.h"
#include "mm_camcorder.h"
#ifdef _MMCAMCORDER_MURPHY_SUPPORT
#include "mm_camcorder_resource.h"
#ifdef _MMCAMCORDER_MURPHY_SUPPORT
#include "mm_camcorder_resource.h"
#include <rm_api.h>
#endif /* _MMCAMCORDER_RM_SUPPORT */
#include <rm_api.h>
#endif /* _MMCAMCORDER_RM_SUPPORT */
+#ifdef LOG_TAG
+#undef LOG_TAG
+#endif
+#define LOG_TAG "MM_CAMCORDER"
+
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
extern "C" {
#endif
/*=======================================================================================
| MACRO DEFINITIONS |
========================================================================================*/
/*=======================================================================================
| MACRO DEFINITIONS |
========================================================================================*/
-#define _mmcam_dbg_verb(fmt, args...) debug_verbose(" "fmt"\n", ##args);
-#define _mmcam_dbg_log(fmt, args...) debug_log(" "fmt"\n", ##args);
-#define _mmcam_dbg_warn(fmt, args...) debug_warning(" "fmt"\n", ##args);
-#define _mmcam_dbg_err(fmt, args...) debug_error(" "fmt"\n", ##args);
-#define _mmcam_dbg_crit(fmt, args...) debug_critical(" "fmt"\n", ##args);
+#define _mmcam_dbg_verb(fmt, args...) SLOGI(fmt, ##args);
+#define _mmcam_dbg_log(fmt, args...) SLOGD(fmt, ##args);
+#define _mmcam_dbg_warn(fmt, args...) SLOGW(fmt, ##args);
+#define _mmcam_dbg_err(fmt, args...) SLOGE(fmt, ##args);
+#define _mmcam_dbg_crit(fmt, args...) SLOGF(fmt, ##args);
/**
* Macro for checking validity and debugging
/**
* Macro for checking validity and debugging
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#include <time.h>
#include <mm_error.h>
#define MM_EXIFINFO_USE_BINARY_EXIFDATA 1
#include <mm_error.h>
#define MM_EXIFINFO_USE_BINARY_EXIFDATA 1