提交 cbd10126 编写于 作者: P Peter Krempa

util: Re-format literal strings in virXMLEmitWarning

And drop a stray space at the end of the first line of the warning.
上级 0b121614
...@@ -796,13 +796,15 @@ static int virXMLEmitWarning(int fd, ...@@ -796,13 +796,15 @@ static int virXMLEmitWarning(int fd,
const char *cmd) const char *cmd)
{ {
size_t len; size_t len;
const char *prologue = "<!--\n\ const char *prologue =
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE \n\ "<!--\n"
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n\ "WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE\n"
virsh "; "OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n"
const char *epilogue = "\n\ " virsh ";
or other application using the libvirt API.\n\ const char *epilogue =
-->\n\n"; "\n"
"or other application using the libvirt API.\n"
"-->\n\n";
if (fd < 0 || !cmd) { if (fd < 0 || !cmd) {
errno = EINVAL; errno = EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册