diff options
author | Masami Hiramatsu <[email protected]> | 2020-03-03 20:24:50 +0900 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2020-03-03 17:38:42 -0500 |
commit | 89b74cac7834734d6b2733204c639917d3826083 (patch) | |
tree | d13cb370aedac7bbb7b9d67f7194de31ad01d5da /scripts/bpf_helpers_doc.py | |
parent | 306b69dce9269df116bfa94319b1b827c22d5794 (diff) |
tools/bootconfig: Show line and column in parse error
Show line and column when we got a parse error in bootconfig tool.
Current lib/bootconfig shows the parse error with byte offset, but
that is not human readable.
This makes xbc_init() not showing error message itself but able to
pass the error message and position to caller, so that the caller
can decode it and show the error message with line number and columns.
With this patch, bootconfig tool shows an error with line:column as
below.
$ cat samples/bad-dotword.bconf
# do not start keyword with .
key {
.word = 1
}
$ ./bootconfig -a samples/bad-dotword.bconf initrd
Parse Error: Invalid keyword at 3:3
Link: http://lkml.kernel.org/r/158323469002.10560.4023923847704522760.stgit@devnote2
Signed-off-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions