diff options
Diffstat (limited to 'tools/bootconfig')
| -rw-r--r-- | tools/bootconfig/main.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/tools/bootconfig/main.c b/tools/bootconfig/main.c index 157f5e71642e..6f476e3c06b8 100644 --- a/tools/bootconfig/main.c +++ b/tools/bootconfig/main.c @@ -50,39 +50,6 @@ static int init_xbc_with_error(char *buf, int len) return ret; } -static void show_xbc_error(const char *data, const char *msg, int pos) -{ - int lin = 1, col, i; - - if (pos < 0) { - pr_err("Error: %s.\n", msg); - return; - } - - /* Note that pos starts from 0 but lin and col should start from 1. */ - col = pos + 1; - for (i = 0; i < pos; i++) { - if (data[i] == '\n') { - lin++; - col = pos - i; - } - } - pr_err("Parse Error: %s at %d:%d\n", msg, lin, col); - -} - -static int init_xbc_with_error(char *buf, int len) -{ - const char *msg; - int ret, pos; - - ret = xbc_init(buf, len, &msg, &pos); - if (ret < 0) - show_xbc_error(buf, msg, pos); - - return ret; -} - static int xbc_show_value(struct xbc_node *node, bool semicolon) { const char *val, *eol; |
