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:12:19 +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 03/24] timerfd_create.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/timerfd_create.2 | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/man2/timerfd_create.2 b/man2/timerfd_create.2
> index 67a13dba3..90e35d9b5 100644
> --- a/man2/timerfd_create.2
> +++ b/man2/timerfd_create.2
> @@ -624,6 +624,7 @@ a.out 3 1 100
>  #include <sys/timerfd.h>
>  #include <time.h>
>  #include <unistd.h>
> +#include <inttypes.h>      /* Definition of PRIu64 */
>  #include <stdlib.h>
>  #include <stdio.h>
>  #include <stdint.h>        /* Definition of uint64_t */
> @@ -706,9 +707,7 @@ main(int argc, char *argv[])
>  
>          tot_exp += exp;
>          print_elapsed_time();
> -        printf("read: %llu; total=%llu\en",
> -                (unsigned long long) exp,
> -                (unsigned long long) tot_exp);
> +        printf("read: %"PRIu64"; total=%"PRIu64"\en", exp, tot_exp);
>      }
>  
>      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