提交 ba8b8ddb 编写于 作者: J Ján Tomko

qemu: print PCI address hexadecimally in errors

Use the same formatting as we do for XML in error and debug outputs.
上级 8e5928de
...@@ -1204,7 +1204,7 @@ static char *qemuPCIAddressAsString(virDevicePCIAddressPtr addr) ...@@ -1204,7 +1204,7 @@ static char *qemuPCIAddressAsString(virDevicePCIAddressPtr addr)
return NULL; return NULL;
} }
if (virAsprintf(&str, "%d:%d:%d.%d", if (virAsprintf(&str, "%.4x:%.2x:%.2x.%.1x",
addr->domain, addr->domain,
addr->bus, addr->bus,
addr->slot, addr->slot,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册