Date: Tue, 16 Nov 2021 00:11:15 GMT From: Kirk McKusick <mckusick@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 9b8eb1c5b62d - main - Followup to f2b391528ad9 to improve printed message. Message-ID: <202111160011.1AG0BFUf017047@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by mckusick: URL: https://cgit.FreeBSD.org/src/commit/?id=9b8eb1c5b62d95217ecb7846af39440bb987d1c3 commit 9b8eb1c5b62d95217ecb7846af39440bb987d1c3 Author: Kirk McKusick <mckusick@FreeBSD.org> AuthorDate: 2021-11-16 00:10:02 +0000 Commit: Kirk McKusick <mckusick@FreeBSD.org> CommitDate: 2021-11-16 00:10:02 +0000 Followup to f2b391528ad9 to improve printed message. Sponsored by: Netflix --- sys/ufs/ffs/ffs_subr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/ufs/ffs/ffs_subr.c b/sys/ufs/ffs/ffs_subr.c index 09f03458e753..a3b7035e6a96 100644 --- a/sys/ufs/ffs/ffs_subr.c +++ b/sys/ufs/ffs/ffs_subr.c @@ -286,7 +286,7 @@ readsuper(void *devfd, struct fs **fsp, off_t sblockloc, int isaltsblk, res = uprintf("Superblock check-hash failed: recorded " "check-hash 0x%x != computed check-hash 0x%x%s\n", fs->fs_ckhash, ckhash, - chkhash == 0 ? " (Ignored)" : ""); + chkhash == STDSB_NOHASHFAIL ? " (Ignored)" : ""); #else res = 0; #endif @@ -298,7 +298,8 @@ readsuper(void *devfd, struct fs **fsp, off_t sblockloc, int isaltsblk, printf("Superblock check-hash failed: recorded " "check-hash 0x%x != computed check-hash " "0x%x%s\n", fs->fs_ckhash, ckhash, - chkhash == 0 ? " (Ignored)" : ""); + chkhash == STDSB_NOHASHFAIL ? + " (Ignored)" : ""); if (chkhash == STDSB) return (EINTEGRITY); /* chkhash == STDSB_NOHASHFAIL */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111160011.1AG0BFUf017047>