[Libguestfs] [PATCH 1/2] lib: When parsing environment, handle LIBGUESTFS_TRACE first.
Richard W.M. Jones
rjones at redhat.com
Fri Nov 9 12:16:58 UTC 2012
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
-------------- next part --------------
>From 3fb92435463e981e7ddb9775ccc58de22ec906b3 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones at redhat.com>
Date: Thu, 8 Nov 2012 12:49:11 +0100
Subject: [PATCH 1/2] lib: When parsing environment, handle LIBGUESTFS_TRACE
first.
So that we can trace all the later calls.
---
src/guestfs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/guestfs.c b/src/guestfs.c
index e755ffa..5428b28 100644
--- a/src/guestfs.c
+++ b/src/guestfs.c
@@ -187,14 +187,14 @@ parse_environment (guestfs_h *g,
* that cannot return errors.
*/
- str = do_getenv (data, "LIBGUESTFS_DEBUG");
- if (str != NULL && STREQ (str, "1"))
- guestfs_set_verbose (g, 1);
-
str = do_getenv (data, "LIBGUESTFS_TRACE");
if (str != NULL && STREQ (str, "1"))
guestfs_set_trace (g, 1);
+ str = do_getenv (data, "LIBGUESTFS_DEBUG");
+ if (str != NULL && STREQ (str, "1"))
+ guestfs_set_verbose (g, 1);
+
str = do_getenv (data, "LIBGUESTFS_PATH");
if (str)
guestfs_set_path (g, str);
--
1.7.11.7
More information about the Libguestfs
mailing list