mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
virt-df: Add newlines after error messages.
(cherry picked from commit 9e2cdd309b)
This commit is contained in:
12
df/domains.c
12
df/domains.c
@@ -114,7 +114,7 @@ get_domains_from_libvirt (void)
|
||||
if (!conn) {
|
||||
err = virGetLastError ();
|
||||
fprintf (stderr,
|
||||
_("%s: could not connect to libvirt (code %d, domain %d): %s"),
|
||||
_("%s: could not connect to libvirt (code %d, domain %d): %s\n"),
|
||||
program_name, err->code, err->domain, err->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -123,7 +123,7 @@ get_domains_from_libvirt (void)
|
||||
if (n == -1) {
|
||||
err = virGetLastError ();
|
||||
fprintf (stderr,
|
||||
_("%s: could not get number of running domains (code %d, domain %d): %s"),
|
||||
_("%s: could not get number of running domains (code %d, domain %d): %s\n"),
|
||||
program_name, err->code, err->domain, err->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -133,7 +133,7 @@ get_domains_from_libvirt (void)
|
||||
if (n == -1) {
|
||||
err = virGetLastError ();
|
||||
fprintf (stderr,
|
||||
_("%s: could not list running domains (code %d, domain %d): %s"),
|
||||
_("%s: could not list running domains (code %d, domain %d): %s\n"),
|
||||
program_name, err->code, err->domain, err->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -144,7 +144,7 @@ get_domains_from_libvirt (void)
|
||||
if (n == -1) {
|
||||
err = virGetLastError ();
|
||||
fprintf (stderr,
|
||||
_("%s: could not get number of inactive domains (code %d, domain %d): %s"),
|
||||
_("%s: could not get number of inactive domains (code %d, domain %d): %s\n"),
|
||||
program_name, err->code, err->domain, err->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -154,7 +154,7 @@ get_domains_from_libvirt (void)
|
||||
if (n == -1) {
|
||||
err = virGetLastError ();
|
||||
fprintf (stderr,
|
||||
_("%s: could not list inactive domains (code %d, domain %d): %s"),
|
||||
_("%s: could not list inactive domains (code %d, domain %d): %s\n"),
|
||||
program_name, err->code, err->domain, err->message);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
@@ -280,7 +280,7 @@ add_domain (virDomainPtr dom)
|
||||
|
||||
if (domain->nr_disks > MAX_DISKS) {
|
||||
fprintf (stderr,
|
||||
_("%s: ignoring %s, it has too many disks (%zu > %d)"),
|
||||
_("%s: ignoring %s, it has too many disks (%zu > %d)\n"),
|
||||
program_name, domain->name, domain->nr_disks, MAX_DISKS);
|
||||
free_domain (domain);
|
||||
nr_domains--;
|
||||
|
||||
Reference in New Issue
Block a user