diff options
author | Job Snijders <job@cvs.openbsd.org> | 2023-05-11 20:13:31 +0000 |
---|---|---|
committer | Job Snijders <job@cvs.openbsd.org> | 2023-05-11 20:13:31 +0000 |
commit | 4fbc15b880c331ab11008b9644358910f4942ce2 (patch) | |
tree | 052bd1bda95e10d066d7b5efbafd21280ca730d5 /usr.sbin | |
parent | e3540a0fa8ca80fdae21a3742077ccf997a9eab1 (diff) |
Print the manifestNumber when warning about unrecoverable message digest mismatches
This makes it easier to understand "when" certain error conditions arose.
OK tb@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/parser.c | 5 |
1 files 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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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; } |