logger: Do not disable Android logging completely if pti_init fails
authorJouni Hogander <jouni.hogander@intel.com>
Tue, 22 May 2012 10:47:07 +0000 (13:47 +0300)
committerbuildbot <buildbot@intel.com>
Tue, 22 May 2012 18:11:32 +0000 (11:11 -0700)
commitc6373b3209d25e2a09338c699c95581050a089a1
treef4a7c98dd08c94cab5e2c24e0c4f31f0a47f5721
parent83f222b154c71c53cd68922ed3a6efbb0a2f25e7
logger: Do not disable Android logging completely if pti_init fails

BZ: 37726

Currently logger_init exits and android logging is not initialized at
all if init_pti fails. This doesn't make sense as pti is not needed by
Android logging.

Fix this by just printing out error message when failure happens
instead of stopping the initialization.

Change-Id: I51432e414659750f780d626833b8862c82544ce7
Signed-off-by: Jouni Hogander <jouni.hogander@intel.com>
Reviewed-on: http://android.intel.com:8080/49699
Reviewed-by: Guerard, Christophe <christophe.guerard@intel.com>
Reviewed-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Tested-by: Lebouc, Christophe <christophe.lebouc@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/staging/android/logger.c