| 89 | } |
| 90 | |
| 91 | string DeviceMgr::DeviceMappingString() const { |
| 92 | string out; |
| 93 | for (const auto& dev : devices_) { |
| 94 | if (!dev->attributes().physical_device_desc().empty()) { |
| 95 | strings::StrAppend(&out, dev->name(), " -> ", |
| 96 | dev->attributes().physical_device_desc(), "\n"); |
| 97 | } |
| 98 | } |
| 99 | return out; |
| 100 | } |
| 101 | |
| 102 | Status DeviceMgr::LookupDevice(StringPiece name, Device** device) const { |
| 103 | auto iter = device_map_.find(name); |
no test coverage detected