|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] add the line number to the config file parsing error
Hi all,
this patch adds the line number to the config file parsing error
message.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
---
diff -r 4e75c5d31f9c tools/libxl/xl.c
--- a/tools/libxl/xl.c Thu Jan 14 15:40:36 2010 +0000
+++ b/tools/libxl/xl.c Thu Jan 14 15:47:25 2010 +0000
@@ -407,7 +407,7 @@
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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] add the line number to the config file parsing error message,
Stefano Stabellini <=
|
|
|
|
|