diff mbox series

mystring: Add a few more uses of snlfmt

Message ID ZjXFCpJ-ULp-HtIn@gondor.apana.org.au (mailing list archive)
State Accepted
Delegated to: Herbert Xu
Headers show
Series mystring: Add a few more uses of snlfmt | expand

Commit Message

Herbert Xu May 4, 2024, 5:18 a.m. UTC
Use snlfmt in a few more places.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
---
 src/alias.c     | 2 +-
 src/jobs.c      | 2 +-
 src/miscbltin.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/alias.c b/src/alias.c
index bacf10f..a443e05 100644
--- a/src/alias.c
+++ b/src/alias.c
@@ -204,7 +204,7 @@  freealias(struct alias *ap) {
 
 void
 printalias(const struct alias *ap) {
-	out1fmt("%s\n", single_quote(ap->name));
+	out1fmt(snlfmt, single_quote(ap->name));
 }
 
 STATIC struct alias **
diff --git a/src/jobs.c b/src/jobs.c
index 840e37c..4cf6b8c 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -345,7 +345,7 @@  usage:
 			pid = **argv == '-' ?
 				-number(*argv + 1) : number(*argv);
 		if (kill(pid, signo) != 0) {
-			sh_warnx("%s\n", strerror(errno));
+			sh_warnx(snlfmt, strerror(errno));
 			i = 1;
 		}
 	} while (*++argv);
diff --git a/src/miscbltin.c b/src/miscbltin.c
index e553f9e..8a0ddf4 100644
--- a/src/miscbltin.c
+++ b/src/miscbltin.c
@@ -237,7 +237,7 @@  umaskcmd(int argc, char **argv)
 				*ap++ = ',';
 			}
 			ap[-1] = '\0';
-			out1fmt("%s\n", buf);
+			out1fmt(snlfmt, buf);
 		} else {
 			out1fmt("%.4o\n", mask);
 		}