Fix cosmetic regression bug reported by Habteab and Mark.
authorJesse Williamson <jesse.f.williamson@intel.com>
Mon, 29 Sep 2014 17:54:59 +0000 (10:54 -0700)
committerJesse Williamson <jesse.f.williamson@intel.com>
Mon, 29 Sep 2014 17:55:47 +0000 (10:55 -0700)
https://01.org/jira/browse/IOT-54

Change-Id: I6b7a946111800848249fea2258dff3253c7a5048

examples/ocicuc/utility.hpp

index 3c8b628..6b92fd9 100644 (file)
@@ -34,12 +34,7 @@ namespace Intel { namespace OCDemo {
 inline std::ostream& operator<<(std::ostream& os, const OC::AttributeMap& attrs)
 {
  for(const auto& attr : attrs)
-  {
-        os << "Attribute \"" << attr.first << "\": ";
-
-        for(const auto& val : attr.second)
-         os << val << "; ";
-  }
+  os << "Attribute \"" << attr.first << "\": " << attr.second << "; ";
 
  return os;
 }