diff options
author | Iliyan Malchev <malchev@google.com> | 2011-11-17 11:39:33 -0800 |
---|---|---|
committer | Iliyan Malchev <malchev@google.com> | 2011-11-17 11:45:46 -0800 |
commit | e46394481e771dbdc8683645c3740a3d262a3d0f (patch) | |
tree | 8776f679e0ddfa49cf3151fee9e4fec61cc74c3c /camera/CameraHal.cpp | |
parent | 78dac813ae2c442dd0669db208abd3720d0ea6c4 (diff) | |
download | hardware_ti_omap4xxx-e46394481e771dbdc8683645c3740a3d262a3d0f.zip hardware_ti_omap4xxx-e46394481e771dbdc8683645c3740a3d262a3d0f.tar.gz hardware_ti_omap4xxx-e46394481e771dbdc8683645c3740a3d262a3d0f.tar.bz2 |
CameraHAL: clean up logs
-- introduce CAMHAL_LOGI so that we don't have to dump informational messages
as LOGE
-- convert some verbose messages to CAMHAL_LOGDB
-- convert most frequent non-error log messages to CAMHAL_LOGI
Change-Id: I8afc24aa17da2c157b7b37300a79b4cde81f87e5
Signed-off-by: Iliyan Malchev <malchev@google.com>
Diffstat (limited to 'camera/CameraHal.cpp')
-rw-r--r-- | camera/CameraHal.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/camera/CameraHal.cpp b/camera/CameraHal.cpp index c192007..c7ba87f 100644 --- a/camera/CameraHal.cpp +++ b/camera/CameraHal.cpp @@ -693,7 +693,7 @@ int CameraHal::setParameters(const CameraParameters& params) if( (valstr = params.get(CameraParameters::KEY_FOCUS_AREAS)) != NULL ) { - CAMHAL_LOGEB("Focus areas position set %s", params.get(CameraParameters::KEY_FOCUS_AREAS)); + CAMHAL_LOGI("Focus areas position set %s", params.get(CameraParameters::KEY_FOCUS_AREAS)); mParameters.set(CameraParameters::KEY_FOCUS_AREAS, valstr); } @@ -910,7 +910,7 @@ int CameraHal::setParameters(const CameraParameters& params) } if( (valstr = params.get(CameraParameters::KEY_METERING_AREAS)) != NULL ) { - CAMHAL_LOGEB("Metering areas position set %s", params.get(CameraParameters::KEY_METERING_AREAS)); + CAMHAL_LOGI("Metering areas position set %s", params.get(CameraParameters::KEY_METERING_AREAS)); mParameters.set(CameraParameters::KEY_METERING_AREAS, valstr); } @@ -1431,7 +1431,7 @@ status_t CameraHal::startPreview() ///If we don't have the preview callback enabled and display adapter, if(!mSetPreviewWindowCalled || (mDisplayAdapter.get() == NULL)){ - CAMHAL_LOGEA("Preview not started. Preview in progress flag set"); + CAMHAL_LOGI("Preview not started. Preview in progress flag set"); mPreviewStartInProgress = true; ret = mCameraAdapter->sendCommand(CameraAdapter::CAMERA_SWITCH_TO_EXECUTING); if ( NO_ERROR != ret ){ @@ -1660,13 +1660,13 @@ status_t CameraHal::setPreviewWindow(struct preview_stream_ops *window) if(mDisplayAdapter.get() != NULL) { ///NULL window passed, destroy the display adapter if present - CAMHAL_LOGEA("NULL window passed, destroying display adapter"); + CAMHAL_LOGI("NULL window passed, destroying display adapter"); mDisplayAdapter.clear(); ///@remarks If there was a window previously existing, we usually expect another valid window to be passed by the client ///@remarks so, we will wait until it passes a valid window to begin the preview again mSetPreviewWindowCalled = false; } - CAMHAL_LOGEA("NULL ANativeWindow passed to setPreviewWindow"); + CAMHAL_LOGI("NULL ANativeWindow passed to setPreviewWindow"); return NO_ERROR; }else if(mDisplayAdapter.get() == NULL) { @@ -2179,7 +2179,7 @@ status_t CameraHal::autoFocus() if (state == CameraAdapter::AF_STATE) { - CAMHAL_LOGDA("Ignoring start-AF (already in progress)"); + CAMHAL_LOGI("Ignoring start-AF (already in progress)"); goto EXIT; } |