aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamie Landeg-Jones <jamie@catflap.org>2023-01-29 22:37:25 +0000
committerXin LI <delphij@FreeBSD.org>2023-02-01 07:25:36 +0000
commitb2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb (patch)
treef286312dd92d0eaf9cfbc118b50539a6ab42ecb2
parent46f35ff24f4b0b17f2174bd66b039d146e32c794 (diff)
downloadsrc-b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb.tar.gz
src-b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb.zip
usr.bin/stat: Fix error message formatting.
PR: bin/261657 (cherry picked from commit 37399d5bcf67c6d68e30a34ce2df30e0964d46d9)
-rw-r--r--usr.bin/stat/stat.c2
1 files changed, 1 insertions, 1 deletions
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);