From eb021d569f23a3f2078ef194c85e035c26718cf5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20A=2E=20Holm?= Date: Tue, 26 Nov 2019 19:03:45 +0100 Subject: [PATCH] std.c: main(): Improve debug message 237ccd74-1077-11ea-b16c-4f45262dc9b5 --- Lib/std/c/src/std.c | 2 +- Lib/std/c/src/t/std.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/std/c/src/std.c b/Lib/std/c/src/std.c index 806341cf..1679d885 100644 --- a/Lib/std/c/src/std.c +++ b/Lib/std/c/src/std.c @@ -313,7 +313,7 @@ int main(int argc, char *argv[]) int t; for (t = optind; t < argc; t++) - msg(3, "Non-option arg: %s", argv[t]); + msg(3, "Non-option arg %d: %s", t, argv[t]); } msg(3, "Returning from main() with value %d", retval); diff --git a/Lib/std/c/src/t/std.t b/Lib/std/c/src/t/std.t index c60ef49b..ed87789a 100755 --- a/Lib/std/c/src/t/std.t +++ b/Lib/std/c/src/t/std.t @@ -169,7 +169,7 @@ sub test_executable { testcmd("$CMD -vvv abc", "", "../$CMD_BASENAME: Using verbose level 3\n" - . "../$CMD_BASENAME: Non-option arg: abc\n" + . "../$CMD_BASENAME: Non-option arg 2: abc\n" . "../$CMD_BASENAME: Returning from main() with value 0\n", 0, 'One argument'); -- 2.11.4.GIT