[DTrace-devel] [PATCH 4/5] test: tid_pid: don't assume the type of pthread_t

Kris Van Hees kris.van.hees at oracle.com
Mon Oct 6 16:13:42 UTC 2025


On Mon, Oct 06, 2025 at 04:28:27PM +0100, Nick Alcock wrote:
> GCC 16 warns about this mismatch.
> 
> Signed-off-by: Nick Alcock <nick.alcock at oracle.com>

Reviewed-by: Kris Van Hees <kris.van.hees at oracle.com>

> ---
>  test/unittest/builtinvar/tst.tid_pid.sh | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/test/unittest/builtinvar/tst.tid_pid.sh b/test/unittest/builtinvar/tst.tid_pid.sh
> index e367411dcfb7d..7551f7c4b8f5c 100755
> --- a/test/unittest/builtinvar/tst.tid_pid.sh
> +++ b/test/unittest/builtinvar/tst.tid_pid.sh
> @@ -51,7 +51,7 @@ int main(int c, char **v) {
>  	pthread_create(&mythr, NULL, &foo, NULL);
>  
>  	/* Also report the pthread_t. */
> -	printf("created pthread_t %lld\n\n", mythr);
> +	printf("created pthread_t %llu\n\n", (long long unsigned) mythr);
>  	fflush(stdout);
>  
>  	/* Wait endlessly.  DTrace will kill me when it is done. */
> -- 
> 2.51.0.284.g117bcb8de7
> 



More information about the DTrace-devel mailing list