]> git.ozlabs.org Git - petitboot/commit
discover/grub2: Clean up error-handling for grub2 parser & lexer
authorJeremy Kerr <jk@ozlabs.org>
Thu, 26 Sep 2013 07:45:58 +0000 (15:45 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 26 Sep 2013 07:45:58 +0000 (15:45 +0800)
commitffc167572a9d56c52908aebefe62ba3e3e2a9cf8
tree9878d068dc4994dcad32c37ea6321f0995193ab2
parent300859ca50c0ea5d9c17d27fd3e3538ce966e08a
discover/grub2: Clean up error-handling for grub2 parser & lexer

Rather than printf() & exit(), use the pb logging functions and abort
the parse.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/grub2/lexer.l
discover/grub2/parser.y
discover/grub2/script.c
test/parser/Makefile.am
test/parser/test-grub2-lexer-error.c [new file with mode: 0644]
test/parser/test-grub2-parser-error.c [new file with mode: 0644]