summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2020-11-02 18:08:14 +0100
committerPatrick Georgi <pgeorgi@google.com>2020-11-04 09:38:08 +0000
commit5193312e1e26d3e9e865cb4584b823cfe2e52f0d (patch)
tree729d32be7c21d9d277505aa2bbb98c6a52513ad8 /util
parent50526d5a307bf614d8ca3107836c93dad3ee1dd0 (diff)
downloadcoreboot-5193312e1e26d3e9e865cb4584b823cfe2e52f0d.tar.xz
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 <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/47103 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com> Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/sconfig/main.c2
1 files changed, 1 insertions, 1 deletions
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)