提交 2bcfd5b1 编写于 作者: O Osier Yang

util: Do not use PRIx64 macro

It breaks the build on Mingw32,  because PRIx64 is coming
from the Win32 headers, but virAsprintf uses the gnulib printf.
上级 6d514728
......@@ -123,8 +123,8 @@ virRandomGenerateWWN(char **wwn,
return -1;
}
if (virAsprintf(wwn, "5" "%s%09" PRIx64,
oui, virRandomBits(36)) < 0) {
if (virAsprintf(wwn, "5" "%s%09llx", oui,
(unsigned long long)virRandomBits(36)) < 0) {
virReportOOMError();
return -1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册