mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
format
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
parent
73fc214ead
commit
285f3296f9
1 changed files with 2 additions and 3 deletions
|
@ -464,9 +464,8 @@ std::fstream PciDevice::openSysFs(const std::string &subPath,
|
|||
std::string PciDevice::name() const {
|
||||
char sysfs[1024];
|
||||
|
||||
snprintf(sysfs, sizeof(sysfs),
|
||||
"%04x:%02x:%02x.%x",
|
||||
slot.domain, slot.bus, slot.device, slot.function);
|
||||
snprintf(sysfs, sizeof(sysfs), "%04x:%02x:%02x.%x", slot.domain, slot.bus,
|
||||
slot.device, slot.function);
|
||||
|
||||
return std::string(sysfs);
|
||||
}
|
Loading…
Add table
Reference in a new issue