rasctl output update

This commit is contained in:
Uwe Seimet
2021-08-25 09:57:37 +02:00
parent 0ac439f3e9
commit 999dbdf492

View File

@@ -213,7 +213,7 @@ void CommandServerInfo(const string& hostname, int port)
} }
} }
cout << "Device types and their properties:" << endl; cout << "Supported device types and their properties:" << endl;
for (int i = 0; i < serverInfo.types_properties_size(); i++) { for (int i = 0; i < serverInfo.types_properties_size(); i++) {
PbDeviceTypeProperties types_properties = serverInfo.types_properties(i); PbDeviceTypeProperties types_properties = serverInfo.types_properties(i);
cout << " " << PbDeviceType_Name(types_properties.type()); cout << " " << PbDeviceType_Name(types_properties.type());
@@ -272,10 +272,10 @@ void CommandServerInfo(const string& hostname, int port)
} }
} }
cout << "Available devices:" << endl; cout << "Attached devices:" << endl;
const PbDevices& devices = serverInfo.devices(); const PbDevices& devices = serverInfo.devices();
if (!devices.devices_size()) { if (!devices.devices_size()) {
cout << "No devices available" << endl; cout << "No devices attached" << endl;
} }
else { else {
list<PbDevice> sorted_devices; list<PbDevice> sorted_devices;