panic_handle: make emmc_panic.c work without logger
authorZhang Dongxing <dongxing.zhang@intel.com>
Fri, 20 Apr 2012 05:29:33 +0000 (13:29 +0800)
committerbuildbot <buildbot@intel.com>
Wed, 25 Apr 2012 10:56:57 +0000 (03:56 -0700)
commit55b1a4e1850ea77582924feb0df8124ebca29d76
treede40e9a260753b9dc2773a09e7992d9be8dd7029
parent0b373509e05cf2f15df0319f239a1b653bf2a264
panic_handle: make emmc_panic.c work without logger

BZ: 32660

When logger is disabled, emmc_ipanic.c is compiled with failure messages because
emmc_ipanic.c depended on logger module. At the same time, logger_pti.c has same issue.

For emmc_iapnic.c, dumping logcat buffer function is enabled only when CONFIG_ANDROID_LOGGER
is set to y. In order to use less macro references, some functions are moved to another
location without any change.
For logger_pti.c, we make ANDROID_LOGGRT_PTI depends on ANDROID_LOGGER. Then logger_pti.c and logger.c
can be enabled/disabled at the same time.

Change-Id: Ib59e85b022b4a163f8a002f2f2c405550fe28d62
Signed-off-by: Zhang Dongxing <dongxing.zhang@intel.com>
Reviewed-on: http://android.intel.com:8080/44106
Reviewed-by: Hogander, Jouni <jouni.hogander@intel.com>
Reviewed-by: Gross, Mark <mark.gross@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/misc/emmc_ipanic.c
drivers/misc/emmc_ipanic.h
drivers/staging/android/Kconfig