Add missing spaces in log messages 71/196971/1
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Tue, 8 Jan 2019 08:31:06 +0000 (09:31 +0100)
committerPawel Kowalski <p.kowalski2@partner.samsung.com>
Tue, 8 Jan 2019 08:31:06 +0000 (09:31 +0100)
Change-Id: I6b99ba86b6d2511067a4ac00a082c6584a952d04

src/common/connection.cpp
src/common/mount-namespace.cpp
src/common/permissible-set.cpp
src/common/privilege_db.cpp

index a21db9b3ca1fae367eb45a34dbd57176f7a0dd81..f273258c5eb6d7d96e073e80cf427fcbf360d069 100644 (file)
@@ -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;
         }
 
index d122b73d39233cb0a0976640404d930ac53f46eb..0eeada77d1af8b37bfc6f5dd0f05e0c4112d8a62 100644 (file)
@@ -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;
index 8a3056fe15adfb23fbcc3eb2854a0e3d8703a200..8dfc666fcb50e27e7bf7d41ddd5a6f2fc9e6f423 100644 (file)
@@ -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 ");
     }
 
index 2c98376e2ad8f294c448f2c46e09bb3a6dfe90cb..c2999921259b49d1e0d4b050cdaf50798aa8536f 100644 (file)
@@ -113,7 +113,7 @@ T try_catch(const std::function<T()> &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);
     });