FIX: compile on x86_64, operator << instead + in log message. 90/37390/3
authorMateusz Malicki <m.malicki2@samsung.com>
Wed, 25 Mar 2015 13:46:14 +0000 (14:46 +0100)
committerDariusz Michaluk <d.michaluk@samsung.com>
Wed, 25 Mar 2015 14:30:24 +0000 (07:30 -0700)
[Bug/Feature]   Doesn't compile on x86_84 (conversion warning),
                operator << instead + in log message
[Cause]         N/A
[Solution]      N/A
[Verification]  compile on x86_64 (f.e. tizenorg_common_x86_64_x11)

Change-Id: I51e51297eec860c65a19810ea1d4feead7c1d3a8

common/netlink/netlink-message.cpp
common/netlink/netlink-message.hpp

index ac42c58..c64199a 100644 (file)
@@ -232,7 +232,7 @@ const char* NetlinkResponse::get(int ifla, int len) const
         throw VasumException("Wrong attribute type");
     }
     if (len >= 0 && rta->rta_len != RTA_LENGTH(len)) {
-        LOGE("Wrong attribute length, expected: " << rta->rta_len + ", got " << len);
+        LOGE("Wrong attribute length, expected: " << rta->rta_len << ", got " << len);
         throw VasumException("Wrong attribute length");
     }
     return reinterpret_cast<const char*>(RTA_DATA(get(rta->rta_len)));
index 6b84de4..971e6ad 100644 (file)
@@ -149,7 +149,7 @@ public:
     /**
      * Fetch attribute
      */
-    NetlinkResponse& fetch(int ifla, std::string& value, int maxSize = std::string::npos);
+    NetlinkResponse& fetch(int ifla, std::string& value, int maxSize = -1);
     template<class T>
     NetlinkResponse& fetch(int ifla, T& value);
     ///@}