From: Alejandro Colomar <colomar.6.4.3@gmail.com>
To: mtk.manpages@gmail.com
Cc: linux-man@vger.kernel.org, Alejandro Colomar <colomar.6.4.3@gmail.com>
Subject: [PATCH] pthread_getattr_np.3: Use "%zu" and "%zx" when printing 'size_t' values
Date: Mon, 7 Sep 2020 22:17:36 +0200 [thread overview]
Message-ID: <20200907201735.3221-1-colomar.6.4.3@gmail.com> (raw)
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com>
---
man3/pthread_getattr_np.3 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/man3/pthread_getattr_np.3 b/man3/pthread_getattr_np.3
index 863a44819..2989381e8 100644
--- a/man3/pthread_getattr_np.3
+++ b/man3/pthread_getattr_np.3
@@ -213,7 +213,7 @@ display_stack_related_attributes(pthread_attr_t *attr, char *prefix)
s = pthread_attr_getguardsize(attr, &guard_size);
if (s != 0)
handle_error_en(s, "pthread_attr_getguardsize");
- printf("%sGuard size = %d bytes\en", prefix, guard_size);
+ printf("%sGuard size = %zu bytes\en", prefix, guard_size);
s = pthread_attr_getstack(attr, &stack_addr, &stack_size);
if (s != 0)
@@ -222,7 +222,7 @@ display_stack_related_attributes(pthread_attr_t *attr, char *prefix)
if (stack_size > 0)
printf(" (EOS = %p)", (char *) stack_addr + stack_size);
printf("\en");
- printf("%sStack size = 0x%x (%d) bytes\en",
+ printf("%sStack size = 0x%zx (%zu) bytes\en",
prefix, stack_size, stack_size);
}
--
2.28.0
next reply other threads:[~2020-09-07 20:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 20:17 Alejandro Colomar [this message]
2020-09-07 20:22 ` [PATCH] pthread_getattr_np.3: Use "%zu" and "%zx" when printing 'size_t' values Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200907201735.3221-1-colomar.6.4.3@gmail.com \
--to=colomar.6.4.3@gmail.com \
--cc=linux-man@vger.kernel.org \
--cc=mtk.manpages@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox