mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
util: Re-format literal strings in virXMLEmitWarning
And drop a stray space at the end of the first line of the warning.
This commit is contained in:
parent
0b121614a2
commit
cbd10126ed
@ -796,13 +796,15 @@ static int virXMLEmitWarning(int fd,
|
||||
const char *cmd)
|
||||
{
|
||||
size_t len;
|
||||
const char *prologue = "<!--\n\
|
||||
WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE \n\
|
||||
OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n\
|
||||
virsh ";
|
||||
const char *epilogue = "\n\
|
||||
or other application using the libvirt API.\n\
|
||||
-->\n\n";
|
||||
const char *prologue =
|
||||
"<!--\n"
|
||||
"WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE\n"
|
||||
"OVERWRITTEN AND LOST. Changes to this xml configuration should be made using:\n"
|
||||
" virsh ";
|
||||
const char *epilogue =
|
||||
"\n"
|
||||
"or other application using the libvirt API.\n"
|
||||
"-->\n\n";
|
||||
|
||||
if (fd < 0 || !cmd) {
|
||||
errno = EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user