From 7822b8bfc54a9f77c4818f86ac876db66a9a4dec Mon Sep 17 00:00:00 2001 From: job Date: Thu, 11 May 2023 20:13:30 +0000 Subject: [PATCH] Print the manifestNumber when warning about unrecoverable message digest mismatches This makes it easier to understand "when" certain error conditions arose. OK tb@ --- usr.sbin/rpki-client/parser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.sbin/rpki-client/parser.c b/usr.sbin/rpki-client/parser.c index 4da886e7549..7da33377ac3 100644 --- a/usr.sbin/rpki-client/parser.c +++ b/usr.sbin/rpki-client/parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.c,v 1.93 2023/04/27 08:37:53 beck Exp $ */ +/* $OpenBSD: parser.c,v 1.94 2023/05/11 20:13:30 job Exp $ */ /* * Copyright (c) 2019 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -188,7 +188,8 @@ proc_parser_mft_check(const char *fn, struct mft *p) /* silently skip not-existing unknown files */ if (m->type == RTYPE_INVALID && noent == 2) continue; - warnx("%s: bad message digest for %s", fn, m->file); + warnx("%s#%s: bad message digest for %s", fn, + p->seqnum, m->file); rc = 0; continue; } -- 2.20.1