diff mbox series

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

Message ID 20250515174523.349331-1-jonvelez12345@gmail.com
State New
Headers show
Series selftests/futex: Fix usage() message to clarify timeout value unit | expand

Commit Message

Jonathan Velez May 15, 2025, 5:45 p.m. UTC
futex_wait_timeout: Fix usage() message to clarify timeout value unit

Signed-off-by: Jonathan Velez <jonvelez12345@gmail.com>
---
 tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

André Almeida May 19, 2025, 9:21 p.m. UTC | #1
Hi Jonathan,

Em 19/05/2025 17:30, Jonathan Velez escreveu:
> 
> 
>> On May 15, 2025, at 1:45 PM, Jonathan Velez <jonvelez12345@gmail.com> wrote:
>>
>> futex_wait_timeout: Fix usage() message to clarify timeout value unit
>>
>> Signed-off-by: Jonathan Velez <jonvelez12345@gmail.com>
>> ---
>> tools/testing/selftests/futex/functional/futex_wait_timeout.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tools/testing/selftests/futex/functional/futex_wait_timeout.c b/tools/testing/selftests/futex/functional/futex_wait_timeout.c
>> index d183f878360b..737475df9242 100644
>> --- a/tools/testing/selftests/futex/functional/futex_wait_timeout.c
>> +++ b/tools/testing/selftests/futex/functional/futex_wait_timeout.c
>> @@ -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);
>> }
>> -- 
>> 2.43.0
>>
>     Hello,
>     
>     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.
diff mbox series

Patch

diff --git a/tools/testing/selftests/futex/functional/futex_wait_timeout.c b/tools/testing/selftests/futex/functional/futex_wait_timeout.c
index d183f878360b..737475df9242 100644
--- a/tools/testing/selftests/futex/functional/futex_wait_timeout.c
+++ b/tools/testing/selftests/futex/functional/futex_wait_timeout.c
@@ -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);
 }