debuggers.hg

changeset 20857:8bbb0dd9a340

libxenlight: Add the line number to the config file parsing error message

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sun Jan 17 17:57:44 2010 +0000 (2010-01-17)
parents 2d3869cfa90f
children 36c40adffe12
files tools/libxl/xl.c
line diff
     1.1 --- a/tools/libxl/xl.c	Sun Jan 17 17:57:11 2010 +0000
     1.2 +++ b/tools/libxl/xl.c	Sun Jan 17 17:57:44 2010 +0000
     1.3 @@ -407,7 +407,7 @@ static void parse_config_file(const char
     1.4          newfilename = compat_config_file(filename);
     1.5          config_init (&config);
     1.6          if (!config_read_file(&config, newfilename)) {
     1.7 -            fprintf(stderr, "Failed to parse config file %s, try removing any embedded python code\n", config_error_text(&config));
     1.8 +            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));
     1.9              exit(1);
    1.10          }
    1.11          free(newfilename);