From 5193312e1e26d3e9e865cb4584b823cfe2e52f0d Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 2 Nov 2020 18:08:14 +0100 Subject: util/sconfig: Report which key is duplicate It slightly helps debugging issues when you know what to look out for. Change-Id: I21eafaf8291701316aa920e458ba74535121b0a1 Signed-off-by: Patrick Georgi Reviewed-on: https://review.coreboot.org/c/coreboot/+/47103 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth Reviewed-by: Stefan Reinauer Reviewed-by: Angel Pons --- util/sconfig/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/sconfig') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index a7b2ce676e..1fd4404942 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -872,7 +872,7 @@ static void add_reg(struct reg **const head, char *const name, char *const val) for (cur = *head; cur != NULL; prev = cur, cur = cur->next) { const int sort = strcmp(r->key, cur->key); if (sort == 0) { - printf("ERROR: duplicate 'register' key.\n"); + printf("ERROR: duplicate 'register' key '%s'.\n", r->key); exit(1); } if (sort < 0) -- cgit v1.2.3