[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 1/2] lib: When parsing environment, handle LIBGUESTFS_TRACE first.



-- 
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
>From 3fb92435463e981e7ddb9775ccc58de22ec906b3 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]