1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
Signed-off-by: Pascal Bauer <pascal.bauer@rwth-aachen.de>
This commit is contained in:
Pascal Bauer 2024-08-24 12:05:36 +02:00 committed by Niklas Eiling
parent 73fc214ead
commit 285f3296f9

View file

@ -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);
}