From 13fc1ca307552c6a71c3fa28c7c1fbc846cc65dc Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Fri, 22 Apr 2016 14:52:03 +0100
Subject: [PATCH] tests: boot analysis: Add text to describe how to change
settings.
(cherry picked from commit 45f84601b05aef0408b55011fb02579c147ca853)
---
tests/qemu/boot-analysis-utils.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/tests/qemu/boot-analysis-utils.c b/tests/qemu/boot-analysis-utils.c
index 4ed2d48..693b6f4 100644
--- a/tests/qemu/boot-analysis-utils.c
+++ b/tests/qemu/boot-analysis-utils.c
@@ -69,18 +69,22 @@ test_info (guestfs_h *g, int nr_test_passes)
/* Related to qemu. */
backend = guestfs_get_backend (g);
- printf (" backend: %s\n", backend);
- printf (" qemu: %s\n", qemu);
+ printf (" backend: %-20s [to change set LIBGUESTFS_BACKEND]\n",
+ backend);
+ printf (" qemu: %-20s [to change set $LIBGUESTFS_HV]\n", qemu);
printf ("qemu version: ");
fflush (stdout);
if (asprintf (&cmd, "%s -version", qemu) == -1)
error (EXIT_FAILURE, errno, "asprintf");
ignore_value (system (cmd));
- printf (" smp: %d\n", guestfs_get_smp (g));
- printf (" memsize: %d\n", guestfs_get_memsize (g));
+ printf (" smp: %-20d [to change use --smp option]\n",
+ guestfs_get_smp (g));
+ printf (" memsize: %-20d [to change use --memsize option]\n",
+ guestfs_get_memsize (g));
/* Related to the guest kernel. Be nice to get the guest
* kernel version here somehow (XXX).
*/
- printf (" append: %s\n", guestfs_get_append (g) ? : "");
+ printf (" append: %-20s [to change use --append option]\n",
+ guestfs_get_append (g) ? : "");
}
--
1.8.3.1