git: 546f545a12f9 - stable/13 - truss: Fix grammar in error messages

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Wed, 04 Dec 2024 17:09:49 UTC
The branch stable/13 has been updated by cy:

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

commit 546f545a12f9e1b8bf83284b4c2eabbe906e304e
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2024-11-25 22:51:36 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2024-12-04 17:09:42 +0000

    truss: Fix grammar in error messages
    
    (cherry picked from commit 501c4801edfcc2943eba8e4f8922436dd0f07dc8)
---
 usr.bin/truss/setup.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/usr.bin/truss/setup.c b/usr.bin/truss/setup.c
index 0022bb532144..cdc880220319 100644
--- a/usr.bin/truss/setup.c
+++ b/usr.bin/truss/setup.c
@@ -178,7 +178,7 @@ setup_and_wait(struct trussinfo *info, char *command[])
 
 	/* Only in the parent here */
 	if (waitpid(pid, NULL, 0) < 0)
-		err(1, "unexpect stop in waitpid");
+		err(1, "unexpected stop in waitpid");
 
 	new_proc(info, pid, 0);
 }
@@ -197,10 +197,10 @@ start_tracing(struct trussinfo *info, pid_t pid)
 		usleep(200);
 	} while (ret && retry-- > 0);
 	if (ret)
-		err(1, "can not attach to target process");
+		err(1, "Cannot attach to target process");
 
 	if (waitpid(pid, NULL, 0) < 0)
-		err(1, "Unexpect stop in waitpid");
+		err(1, "Unexpected stop in waitpid");
 
 	new_proc(info, pid, 0);
 }