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]
Message-ID: <6f0dbdcb-1939-036a-8a20-791bb57db975@gmail.com>
Date:   Fri, 11 Sep 2020 10:13:01 +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 04/24] eventfd.2: Use 'PRIxN' macros when printing C99
 fixed-width integer types

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

> ---
>  man2/eventfd.2 | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/man2/eventfd.2 b/man2/eventfd.2
> index 929234ab7..71e9d85b4 100644
> --- a/man2/eventfd.2
> +++ b/man2/eventfd.2
> @@ -386,6 +386,7 @@ Parent read 28 (0x1c) from efd
>  .EX
>  #include <sys/eventfd.h>
>  #include <unistd.h>
> +#include <inttypes.h>           /* Definition of PRIu64 & PRIx64 */
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <stdint.h>             /* Definition of uint64_t */
> @@ -430,8 +431,7 @@ main(int argc, char *argv[])
>          s = read(efd, &u, sizeof(uint64_t));
>          if (s != sizeof(uint64_t))
>              handle_error("read");
> -        printf("Parent read %llu (0x%llx) from efd\en",
> -                (unsigned long long) u, (unsigned long long) u);
> +        printf("Parent read %"PRIu64" (0x%"PRIx64") from efd\en", u, u);
>          exit(EXIT_SUCCESS);
>  
>      case \-1:
> 


-- 
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