Use proper printf length modifier for sizeof() 71/24571/1
authorRafal Krypa <r.krypa@samsung.com>
Wed, 9 Jul 2014 14:24:10 +0000 (16:24 +0200)
committerBartlomiej Grzelewski <b.grzelewski@samsung.com>
Wed, 16 Jul 2014 12:58:40 +0000 (14:58 +0200)
Printing sizeof value needs %zu, not %u.

Change-Id: I0d1cf2b9bfb8956e4377eccf70f24f6bfbe5bc4d

src/common/sockets/Socket.cpp

index 81be8d4..5149d17 100644 (file)
@@ -132,7 +132,7 @@ bool Socket::connect(void) {
 
     if (m_socketPath.length() >= sizeof(clientAddr.sun_path)) {
         close();
-        LOGE("Error: socket path <%s> is too long [%zu]. Max len is [%u]", m_socketPath.c_str(),
+        LOGE("Error: socket path <%s> is too long [%zu]. Max len is [%zu]", m_socketPath.c_str(),
              m_socketPath.length(), sizeof(clientAddr.sun_path));
         throw InitException();
     }