Date: Mon, 31 Jan 2022 18:31:04 GMT From: Wolfram Schneider <wosch@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 1536d37b2045 - main - fix casting issue in error message for 32bit CPUs (e.g. armv7) Message-ID: <202201311831.20VIV4ZE073051@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=1536d37b2045d867d14f5206ebc84bced112e49a commit 1536d37b2045d867d14f5206ebc84bced112e49a Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2022-01-31 18:30:07 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> CommitDate: 2022-01-31 18:30:07 +0000 fix casting issue in error message for 32bit CPUs (e.g. armv7) --- usr.bin/locate/locate/fastfind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/locate/locate/fastfind.c b/usr.bin/locate/locate/fastfind.c index 8cc9af924531..d67c6c776f67 100644 --- a/usr.bin/locate/locate/fastfind.c +++ b/usr.bin/locate/locate/fastfind.c @@ -296,7 +296,7 @@ fastfind } if (p - path >= LOCATE_PATH_MAX) - errx(1, "corrupted database: %s %ld", database, p - path); + errx(1, "corrupted database: %s %d", database, (int)(p - path)); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202201311831.20VIV4ZE073051>