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

[Xen-changelog] [xen-unstable] libxenlight: Add the line number to the config file parsing error message



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.