git: b2ffd03bbb3e - stable/12 - usr.bin/stat: Fix error message formatting.

From: Xin LI <delphij_at_FreeBSD.org>
Date: Wed, 01 Feb 2023 07:25:46 UTC
The branch stable/12 has been updated by delphij:

URL: https://cgit.FreeBSD.org/src/commit/?id=b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb

commit b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb
Author:     Jamie Landeg-Jones <jamie@catflap.org>
AuthorDate: 2023-01-29 22:37:25 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2023-02-01 07:25:36 +0000

    usr.bin/stat: Fix error message formatting.
    
    PR:             bin/261657
    
    (cherry picked from commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9)
---
 usr.bin/stat/stat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/stat/stat.c b/usr.bin/stat/stat.c
index 0b63a4067caf..e73f62362281 100644
--- a/usr.bin/stat/stat.c
+++ b/usr.bin/stat/stat.c
@@ -371,7 +371,7 @@ main(int argc, char *argv[])
 			errs = 1;
 			linkfail = 1;
 			if (!quiet)
-				warn("%s: stat", file);
+				warn("%s", file);
 		}
 		else
 			output(&st, file, statfmt, fn, nonl);