summaryrefslogtreecommitdiffstats
path: root/camera/V4LCameraAdapter
diff options
context:
space:
mode:
authorDaniel Levin <dendy@ti.com>2011-11-17 12:27:02 -0600
committerDaniel Levin <dendy@ti.com>2012-07-25 08:55:37 -0500
commitde2c98bac5c44d049fa7d38ac0173e873eeba298 (patch)
tree466fce0928905ef599af1df8a83d39f7ee75e117 /camera/V4LCameraAdapter
parent011e176967b3275582b8d8f0170aadb3c42334c8 (diff)
downloadhardware_ti_omap4-de2c98bac5c44d049fa7d38ac0173e873eeba298.zip
hardware_ti_omap4-de2c98bac5c44d049fa7d38ac0173e873eeba298.tar.gz
hardware_ti_omap4-de2c98bac5c44d049fa7d38ac0173e873eeba298.tar.bz2
CameraHAL: Improved debug logging
0. Renamed DEBUG_LOG macro to CAMERAHAL_DEBUG and moved it from CameraHal.h into Android.mk. To enable debug logging next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_DEBUG_ENABLED := 1 To enable verbose debug logging next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_VERBOSE_DEBUG_ENABLED := 1 1. CAMHAL_LOG*A and CAMHAL_LOG*B macros have been united into single CAMHAL_LOG* macro that accepts both variants. 2. Rewritten LOG_FUNCTION_NAME/LOG_FUNCTION_NAME_EXIT macros. Now they do operate on internal FunctionLogger class instance that does function enter/exit logging in constructor/destructor. If LOG_FUNCTION_NAME is used then LOG_FUNCTION_NAME_EXIT can be skipped in source code, in this case destructor will correctly print function exit entry. 3. Added optional printing message timestamps. To enable timestamp printing next variable should be put into $AFS/buildspec.mk: TI_CAMERAHAL_DEBUG_TIMESTAMPS := 1 4. Moved LOG_TAG macro definition from all CameraHAL sources to Android.mk. 5. Added printing message thread ids. 6. Added printing per thread call stack indentation to visualize call hierarchy. 7. Added CAMHAL_ASSERT(condition) and CAMHAL_ASSERT_X(condition,description) macros to assert conditions at runtime and abort process on failure. 8. Added CAMHAL_UNUSED(x) to mark unused variables which are not mistakes. 9. Added next variables to enable debug logging for MessageQueue, that should be put into $AFS/buildspec.mk: TI_UTILS_MESSAGE_QUEUE_DEBUG_ENABLED := 1 TI_UTILS_MESSAGE_QUEUE_DEBUG_FUNCTION_NAMES := 1 Signed-off-by: Daniel Levin <dendy@ti.com> Change-Id: I8ebea607199de621860ada6dfcab9164ba85674a
Diffstat (limited to 'camera/V4LCameraAdapter')
-rw-r--r--camera/V4LCameraAdapter/V4LCameraAdapter.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/camera/V4LCameraAdapter/V4LCameraAdapter.cpp b/camera/V4LCameraAdapter/V4LCameraAdapter.cpp
index 3fb3380..44904f3 100644
--- a/camera/V4LCameraAdapter/V4LCameraAdapter.cpp
+++ b/camera/V4LCameraAdapter/V4LCameraAdapter.cpp
@@ -48,10 +48,6 @@ static int mDebugFps = 0;
namespace android {
-#undef LOG_TAG
-///Maintain a separate tag for V4LCameraAdapter logs to isolate issues OMX specific
-#define LOG_TAG "CameraHAL"
-
//frames skipped before recalculating the framerate
#define FPS_PERIOD 30