btrace: "too long line" -> "line too long"
authordv <dv@openbsd.org>
Wed, 20 Dec 2023 01:38:46 +0000 (01:38 +0000)
committerdv <dv@openbsd.org>
Wed, 20 Dec 2023 01:38:46 +0000 (01:38 +0000)
ok claudio@

usr.sbin/btrace/bt_parse.y

index 12c445d..0207fe9 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: bt_parse.y,v 1.54 2023/10/12 15:16:44 cheloha Exp $   */
+/*     $OpenBSD: bt_parse.y,v 1.55 2023/12/20 01:38:46 dv Exp $        */
 
 /*
  * Copyright (c) 2019-2023 Martin Pieuchot <mpi@openbsd.org>
@@ -897,7 +897,7 @@ again:
                        }
                        *p++ = c;
                        if (p == ebuf) {
-                               yyerror("too long line");
+                               yyerror("line too long");
                                return ERROR;
                        }
                }
@@ -922,7 +922,7 @@ again:
                do {
                        *p++ = c;
                        if (p == ebuf) {
-                               yyerror("too long line");
+                               yyerror("line too long");
                                return ERROR;
                        }
                } while ((c = lgetc()) != EOF && isdigit(c));
@@ -956,7 +956,7 @@ again:
                do {
                        *p++ = c;
                        if (p == ebuf) {
-                               yyerror("too long line");
+                               yyerror("line too long");
                                return ERROR;
                        }
                } while ((c = lgetc()) != EOF && (allowed_in_string(c)));