diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-03-11 17:55:52 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-03-11 18:15:01 +0100 |
commit | 130c5ebd48611ce87b30cea58a4b989e2affb7a0 (patch) | |
tree | 46e7dee8e2a66e76f27b1a4610929bac410bfa3a | |
parent | 6df20cb2f5abdb37af0e87b3b02c681db9215c0a (diff) | |
download | android_hardware_samsung_slsi_exynos5430-130c5ebd48611ce87b30cea58a4b989e2affb7a0.tar.gz android_hardware_samsung_slsi_exynos5430-130c5ebd48611ce87b30cea58a4b989e2affb7a0.tar.xz android_hardware_samsung_slsi_exynos5430-130c5ebd48611ce87b30cea58a4b989e2affb7a0.zip |
mobicore: Improve some log messages in the daemon
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | mobicore/daemon/Daemon/FSD/FSD.cpp | 4 | ||||
-rw-r--r-- | mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp | 17 |
2 files changed, 11 insertions, 10 deletions
diff --git a/mobicore/daemon/Daemon/FSD/FSD.cpp b/mobicore/daemon/Daemon/FSD/FSD.cpp index 012bbb8..fa9f245 100644 --- a/mobicore/daemon/Daemon/FSD/FSD.cpp +++ b/mobicore/daemon/Daemon/FSD/FSD.cpp @@ -79,10 +79,10 @@ void FSD::run( /*Create Tbase storage directory*/ if (stat(tbstpath, &st) == -1) { - LOG_I("%s: Creating <t-base storage Folder %s\n",TAG_LOG,tbstpath); + LOG_I("%s: Create <t-base storage folder %s", TAG_LOG, tbstpath); if(mkdir(tbstpath, 0600)==-1) { - LOG_E("%s: failed creating storage folder\n",TAG_LOG); + LOG_ERRNO("Failed to create storage folder"); } } do{ diff --git a/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp b/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp index 0012e5a..e815221 100644 --- a/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp +++ b/mobicore/daemon/Daemon/MobiCoreDriverDaemon.cpp @@ -1411,28 +1411,29 @@ static void checkMobiCoreVersion( // Check <t-base version info. char *msg; if (!checkVersionOkMCI(versionPayload.versionInfo.versionMci, &msg)) { - LOG_E("%s", msg); + LOG_E("checkVersionOkMCI failed - %s", msg); failed = true; } - LOG_I_RELEASE("%s", msg); + LOG_I_RELEASE("versionMci - %s", msg); if (!checkVersionOkSO(versionPayload.versionInfo.versionSo, &msg)) { - LOG_E("%s", msg); + LOG_E("checkVersionOkSO failed - %s", msg); failed = true; } - LOG_I_RELEASE("%s", msg); + LOG_I_RELEASE("versionSo - %s", msg); if (!checkVersionOkMCLF(versionPayload.versionInfo.versionMclf, &msg)) { - LOG_E("%s", msg); + LOG_E("checkVersionOkMCLF failed - %s", msg); failed = true; } - LOG_I_RELEASE("%s", msg); + LOG_I_RELEASE("versionInfo - %s", msg); if (!checkVersionOkCONTAINER(versionPayload.versionInfo.versionContainer, &msg)) { - LOG_E("%s", msg); + LOG_E("checkVersionOkCONTAINER failed - %s", msg); failed = true; } - LOG_I_RELEASE("%s", msg); + LOG_I_RELEASE("versionContainer - %s", msg); } if (failed) { + LOG_E("Failed to check mobiCore version"); exit(1); } } |