guestfish -iv should print virt-inspector command (for debugging).
authorRichard W.M. Jones <rjones@redhat.com>
Fri, 24 Jul 2009 14:46:15 +0000 (15:46 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Fri, 24 Jul 2009 14:46:15 +0000 (15:46 +0100)
fish/fish.c

index f5d538d..fdb2ba2 100644 (file)
@@ -340,7 +340,9 @@ main (int argc, char *argv[])
     if (!guestfs_get_autosync (g))
       strcat (cmd, " -n");
 
-    /*printf ("%s\n", cmd);*/
+    if (verbose)
+      fprintf (stderr,
+              "guestfish -i: running virt-inspector command:\n%s\n", cmd);
 
     r = system (cmd);
     if (r == -1) {