Skip to contentSkip to conversation

selftests/futex: Fix usage() message to clarify timeout value unit

PATCH In review Jonathan Velez 2 participants 3 messages May 15, 2025 – May 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 selftests/futex: Fix usage() message to clarify timeout value unit

futex_wait_timeout: Fix usage() message to clarify timeout value unit

---
 tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/futex/functional/futex_wait_timeout.c +1 -1
index d183f878360b..737475df9242 100644
@@ -31,7 +31,7 @@ void usage(char *prog)
 	printf("Usage: %s\n", prog);
 	printf("  -c	Use color\n");
 	printf("  -h	Display this help message\n");
-	printf("  -t N	Timeout in nanoseconds (default: 100,000)\n");
+	printf("  -t N	Set timeout duration in nanoseconds (default: 100,000 ns = 100 us)\n");
 	printf("  -v L	Verbosity level: %d=QUIET %d=CRITICAL %d=INFO\n",
 	       VQUIET, VCRITICAL, VINFO);
 }
Signature · 1 line
2.43.0
#1 lore raw
Quoted 27 lines · Jonathan Velez

futex_wait_timeout: Fix usage() message to clarify timeout value unit

---
tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/futex/functional/futex_wait_timeout.c +1 -1
index d183f878360b..737475df9242 100644
@@ -31,7 +31,7 @@ void usage(char *prog)
 	printf("Usage: %s\n", prog);
 	printf("  -c	Use color\n");
 	printf("  -h	Display this help message\n");
-	printf("  -t N	Timeout in nanoseconds (default: 100,000)\n");
+	printf("  -t N	Set timeout duration in nanoseconds (default: 100,000 ns = 100 us)\n");
 	printf("  -v L	Verbosity level: %d=QUIET %d=CRITICAL %d=INFO\n",
 	       VQUIET, VCRITICAL, VINFO);
 }
Signature · 1 line
2.43.0

Hello,

I’m following up on the validity of this Patch.

Best Regards,
Jonathan Velez

#2 lore raw

Hi Jonathan,

Em 19/05/2025 17:30, Jonathan Velez escreveu:

Quoted 29 lines
Quoted 27 lines · Jonathan Velez

futex_wait_timeout: Fix usage() message to clarify timeout value unit

---
tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/futex/functional/futex_wait_timeout.c +1 -1
index d183f878360b..737475df9242 100644
@@ -31,7 +31,7 @@ void usage(char *prog)
 	printf("Usage: %s\n", prog);
 	printf("  -c	Use color\n");
 	printf("  -h	Display this help message\n");
-	printf("  -t N	Timeout in nanoseconds (default: 100,000)\n");
+	printf("  -t N	Set timeout duration in nanoseconds (default: 100,000 ns = 100 us)\n");
 	printf("  -v L	Verbosity level: %d=QUIET %d=CRITICAL %d=INFO\n",
 	       VQUIET, VCRITICAL, VINFO);
 }
Signature · 1 line
2.43.0

Hello,

Quoted 5 lines

I’m following up on the validity of this Patch.

Best Regards,
Jonathan Velez

I think the current string already states what's the value unit of the timeout in nanoseconds and is good as it is.