lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Fri, 11 Sep 2020 10:06:16 +0200
From:   "Michael Kerrisk (man-pages)" <mtk.manpages@...il.com>
To:     Alejandro Colomar <colomar.6.4.3@...il.com>
Cc:     mtk.manpages@...il.com, linux-man@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH 05/24] offsetof.3: Use "%zu" rather than "%zd" when
 printing 'size_t' values

On 9/10/20 11:13 PM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@...il.com>

Thanks, Alex. Patch Applied.

Cheers,

Michael

> ---
>  man3/offsetof.3 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man3/offsetof.3 b/man3/offsetof.3
> index 05fdd6dd8..f0c9975f4 100644
> --- a/man3/offsetof.3
> +++ b/man3/offsetof.3
> @@ -93,10 +93,10 @@ main(void)
>  
>      /* Output is compiler dependent */
>  
> -    printf("offsets: i=%zd; c=%zd; d=%zd a=%zd\en",
> +    printf("offsets: i=%zu; c=%zu; d=%zu a=%zu\en",
>              offsetof(struct s, i), offsetof(struct s, c),
>              offsetof(struct s, d), offsetof(struct s, a));
> -    printf("sizeof(struct s)=%zd\en", sizeof(struct s));
> +    printf("sizeof(struct s)=%zu\en", sizeof(struct s));
>  
>      exit(EXIT_SUCCESS);
>  }
> 


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ