aboutsummaryrefslogtreecommitdiff
path: root/rt/tst-mqueue4.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2014-12-19 14:00:59 -0800
committerH.J. Lu <hjl.tools@gmail.com>2014-12-30 08:07:50 -0800
commit5d619de4610fa00d0b633e1916c49e59824440ff (patch)
treef47278e52def825767fbf4a451dae0eb1ec602bf /rt/tst-mqueue4.c
parent6490d945378090db82be2759ff66719a980d9c1c (diff)
downloadglibc-5d619de4610fa00d0b633e1916c49e59824440ff.tar
glibc-5d619de4610fa00d0b633e1916c49e59824440ff.tar.gz
glibc-5d619de4610fa00d0b633e1916c49e59824440ff.tar.bz2
glibc-5d619de4610fa00d0b633e1916c49e59824440ff.zip
Replace %ld/%lu with %jd/%ju and cast to intmax_t/uintmax_t
Diffstat (limited to 'rt/tst-mqueue4.c')
-rw-r--r--rt/tst-mqueue4.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/rt/tst-mqueue4.c b/rt/tst-mqueue4.c
index 60603bec09..d6733c23c2 100644
--- a/rt/tst-mqueue4.c
+++ b/rt/tst-mqueue4.c
@@ -139,9 +139,10 @@ do_test (void)
|| attr.mq_msgsize != 2
|| attr.mq_curmsgs != 2)
{
- printf ("mq_getattr returned unexpected { .mq_flags = %ld,\n"
- ".mq_maxmsg = %ld, .mq_msgsize = %ld, .mq_curmsgs = %ld }\n",
- attr.mq_flags, attr.mq_maxmsg, attr.mq_msgsize, attr.mq_curmsgs);
+ printf ("mq_getattr returned unexpected { .mq_flags = %jd,\n"
+ ".mq_maxmsg = %jd, .mq_msgsize = %jd, .mq_curmsgs = %jd }\n",
+ (intmax_t) attr.mq_flags, (intmax_t) attr.mq_maxmsg,
+ (intmax_t) attr.mq_msgsize, (intmax_t) attr.mq_curmsgs);
result = 1;
}
@@ -215,9 +216,10 @@ do_test (void)
|| attr.mq_msgsize != 2
|| attr.mq_curmsgs != 1)
{
- printf ("mq_getattr returned unexpected { .mq_flags = %ld,\n"
- ".mq_maxmsg = %ld, .mq_msgsize = %ld, .mq_curmsgs = %ld }\n",
- attr.mq_flags, attr.mq_maxmsg, attr.mq_msgsize, attr.mq_curmsgs);
+ printf ("mq_getattr returned unexpected { .mq_flags = %jd,\n"
+ ".mq_maxmsg = %jd, .mq_msgsize = %jd, .mq_curmsgs = %jd }\n",
+ (intmax_t) attr.mq_flags, (intmax_t) attr.mq_maxmsg,
+ (intmax_t) attr.mq_msgsize, (intmax_t) attr.mq_curmsgs);
result = 1;
}