Printing: print fewer newlines
This commit is contained in:
@@ -127,7 +127,7 @@ public:
|
|||||||
}
|
}
|
||||||
os << " ";
|
os << " ";
|
||||||
}
|
}
|
||||||
os << "), Device Selector: " << deviceSelector << std::endl;
|
os << "), Device Selector: " << deviceSelector;
|
||||||
|
|
||||||
return os.str();
|
return os.str();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
Submodule libspinscale updated: ebf0fa2921...00be517f30
@@ -78,7 +78,7 @@ const std::string DeviceManager::stringifyDeviceSpecs(void)
|
|||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
|
|
||||||
for (const auto& spec : getInstance().s.rsrc.deviceAttachmentSpecs) {
|
for (const auto& spec : getInstance().s.rsrc.deviceAttachmentSpecs) {
|
||||||
oss << "Device Attachment Spec: " << spec->stringify();
|
oss << "Device Attachment Spec: " << spec->stringify() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
return oss.str();
|
return oss.str();
|
||||||
|
|||||||
@@ -25,8 +25,13 @@ public:
|
|||||||
std::ostringstream os;
|
std::ostringstream os;
|
||||||
os << "Device Identifier: " << deviceIdentifier
|
os << "Device Identifier: " << deviceIdentifier
|
||||||
<< ", Device Roles: " << deviceRoles.size() << std::endl;
|
<< ", Device Roles: " << deviceRoles.size() << std::endl;
|
||||||
for (const auto& deviceRole : deviceRoles) {
|
for (size_t roleIndex = 0; roleIndex < deviceRoles.size(); ++roleIndex)
|
||||||
os << " " << deviceRole->deviceAttachmentSpec->stringify();
|
{
|
||||||
|
os << " "
|
||||||
|
<< deviceRoles[roleIndex]->deviceAttachmentSpec->stringify();
|
||||||
|
if (roleIndex + 1 < deviceRoles.size()) {
|
||||||
|
os << "\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return os.str();
|
return os.str();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user