All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] getline.3: Use %zd rather than %zu when printing 'ssize_t' values
@ 2020-09-07  8:35 Alejandro Colomar
  2020-09-07  9:00 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Alejandro Colomar @ 2020-09-07  8:35 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Alejandro Colomar

Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
 man3/getline.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man3/getline.3 b/man3/getline.3
index 0dc3a562d..8cd974c05 100644
--- a/man3/getline.3
+++ b/man3/getline.3
@@ -184,7 +184,7 @@ main(int argc, char *argv[])
     }
 
     while ((nread = getline(&line, &len, stream)) != \-1) {
-        printf("Retrieved line of length %zu:\en", nread);
+        printf("Retrieved line of length %zd:\en", nread);
         fwrite(line, nread, 1, stdout);
     }
 
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] getline.3: Use %zd rather than %zu when printing 'ssize_t' values
  2020-09-07  8:35 [PATCH] getline.3: Use %zd rather than %zu when printing 'ssize_t' values Alejandro Colomar
@ 2020-09-07  9:00 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-09-07  9:00 UTC (permalink / raw)
  To: Alejandro Colomar; +Cc: mtk.manpages, linux-man

On 9/7/20 10:35 AM, Alejandro Colomar wrote:
> Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
> ---
>  man3/getline.3 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Thanks, Alex. Patch applied.

Cheers,

Michael

> diff --git a/man3/getline.3 b/man3/getline.3
> index 0dc3a562d..8cd974c05 100644
> --- a/man3/getline.3
> +++ b/man3/getline.3
> @@ -184,7 +184,7 @@ main(int argc, char *argv[])
>      }
>  
>      while ((nread = getline(&line, &len, stream)) != \-1) {
> -        printf("Retrieved line of length %zu:\en", nread);
> +        printf("Retrieved line of length %zd:\en", nread);
>          fwrite(line, nread, 1, stdout);
>      }
>  
> 


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-09-07  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-07  8:35 [PATCH] getline.3: Use %zd rather than %zu when printing 'ssize_t' values Alejandro Colomar
2020-09-07  9:00 ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.