WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] libxenlight: Add the line number to the c

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] libxenlight: Add the line number to the config file parsing error message
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 18 Jan 2010 02:50:19 -0800
Delivery-date: Mon, 18 Jan 2010 02:50:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1263751064 0
# Node ID 8bbb0dd9a340a3ae7011b35945d496d4d1910818
# Parent  2d3869cfa90f4dd0afe349c2acaf3b0132ef850a
libxenlight: Add the line number to the config file parsing error message

Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
 tools/libxl/xl.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 2d3869cfa90f -r 8bbb0dd9a340 tools/libxl/xl.c
--- a/tools/libxl/xl.c  Sun Jan 17 17:57:11 2010 +0000
+++ b/tools/libxl/xl.c  Sun Jan 17 17:57:44 2010 +0000
@@ -407,7 +407,7 @@ static void parse_config_file(const char
         newfilename = compat_config_file(filename);
         config_init (&config);
         if (!config_read_file(&config, newfilename)) {
-            fprintf(stderr, "Failed to parse config file %s, try removing any 
embedded python code\n", config_error_text(&config));
+            fprintf(stderr, "Failed to parse config file %s on line %d, try 
removing any embedded python code\n", config_error_text(&config), 
config_error_line(&config));
             exit(1);
         }
         free(newfilename);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] libxenlight: Add the line number to the config file parsing error message, Xen patchbot-unstable <=