From: Pawel Kowalski
Date: Tue, 8 Jan 2019 08:31:06 +0000 (+0100)
Subject: Add missing spaces in log messages
X-Git-Tag: submit/tizen/20190111.113023~3
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd914dfa29100348acb26367e27eabf58147ab8;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git
Add missing spaces in log messages
Change-Id: I6b99ba86b6d2511067a4ac00a082c6584a952d04
---
diff --git a/src/common/connection.cpp b/src/common/connection.cpp
index a21db9b3..f273258c 100644
--- a/src/common/connection.cpp
+++ b/src/common/connection.cpp
@@ -104,7 +104,7 @@ public:
clientAddr.sun_family = AF_UNIX;
if (strlen(interface) >= sizeof(clientAddr.sun_path)) {
- LogError("Error: interface name " << interface << "is too long. Max len is:" << sizeof(clientAddr.sun_path));
+ LogError("Error: interface name " << interface << " is too long. Max len is: " << sizeof(clientAddr.sun_path));
return SECURITY_MANAGER_ERROR_NO_SUCH_SERVICE;
}
diff --git a/src/common/mount-namespace.cpp b/src/common/mount-namespace.cpp
index d122b73d..0eeada77 100644
--- a/src/common/mount-namespace.cpp
+++ b/src/common/mount-namespace.cpp
@@ -199,7 +199,7 @@ int bindMount(const Path &source, const Path &target)
{
int ret = mount(source.c_str(), target.c_str(), NULL, MS_BIND, NULL);
if (ret != 0) {
- LogError("Failed to bind directory " << source << "to " << target << " " << GetErrnoString(errno));
+ LogError("Failed to bind directory " << source << " to " << target << " " << GetErrnoString(errno));
return SECURITY_MANAGER_ERROR_MOUNT_ERROR;
}
return SECURITY_MANAGER_SUCCESS;
diff --git a/src/common/permissible-set.cpp b/src/common/permissible-set.cpp
index 8a3056fe..8dfc666f 100644
--- a/src/common/permissible-set.cpp
+++ b/src/common/permissible-set.cpp
@@ -68,7 +68,7 @@ static void openAndLockNameFile(const std::string &nameFile, T &fstream)
{
fstream.open(nameFile);
if (!fstream.is_open()) {
- LogError("Unable to open file" << nameFile << ": " << GetErrnoString(errno));
+ LogError("Unable to open file " << nameFile << ": " << GetErrnoString(errno));
ThrowMsg(PermissibleSetException::FileOpenError, "Unable to open file ");
}
diff --git a/src/common/privilege_db.cpp b/src/common/privilege_db.cpp
index 2c98376e..c2999921 100644
--- a/src/common/privilege_db.cpp
+++ b/src/common/privilege_db.cpp
@@ -113,7 +113,7 @@ T try_catch(const std::function &func)
ThrowMsg(PrivilegeDb::Exception::ConstraintError,
"Constraints violated by command: " << e.DumpToString());
} catch (DB::SqlConnection::Exception::InternalError &e) {
- LogError("Mysterious internal error in SqlConnection class" << e.DumpToString());
+ LogError("Mysterious internal error in SqlConnection class: " << e.DumpToString());
ThrowMsg(PrivilegeDb::Exception::InternalError,
"Mysterious internal error in SqlConnection class: " << e.DumpToString());
}
@@ -615,7 +615,7 @@ bool PrivilegeDb::IsPackageSharedRO(const std::string &pkgName)
if (command->Step())
shared_ro = command->GetColumnInteger(0);
- LogDebug("Package " << pkgName << "has shared_ro set to " << shared_ro);
+ LogDebug("Package " << pkgName << " has shared_ro set to " << shared_ro);
return (shared_ro > 0);
});