diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2014-12-19 14:00:59 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2014-12-30 08:07:50 -0800 |
commit | 5d619de4610fa00d0b633e1916c49e59824440ff (patch) | |
tree | f47278e52def825767fbf4a451dae0eb1ec602bf /rt/tst-mqueue3.c | |
parent | 6490d945378090db82be2759ff66719a980d9c1c (diff) | |
download | glibc-5d619de4610fa00d0b633e1916c49e59824440ff.tar.gz glibc-5d619de4610fa00d0b633e1916c49e59824440ff.tar.xz glibc-5d619de4610fa00d0b633e1916c49e59824440ff.zip |
Replace %ld/%lu with %jd/%ju and cast to intmax_t/uintmax_t
Diffstat (limited to 'rt/tst-mqueue3.c')
-rw-r--r-- | rt/tst-mqueue3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rt/tst-mqueue3.c b/rt/tst-mqueue3.c index 4607e1b088..c7270a1639 100644 --- a/rt/tst-mqueue3.c +++ b/rt/tst-mqueue3.c @@ -61,14 +61,14 @@ fct (union sigval s) /* Check the values. */ if (attr.mq_maxmsg != MAXMSG) { - printf ("%s: mq_maxmsg wrong: is %ld, expecte %d\n", - __FUNCTION__, attr.mq_maxmsg, MAXMSG); + printf ("%s: mq_maxmsg wrong: is %jd, expecte %d\n", + __FUNCTION__, (intmax_t) attr.mq_maxmsg, MAXMSG); exit (1); } if (attr.mq_msgsize != MAXMSG) { - printf ("%s: mq_msgsize wrong: is %ld, expecte %d\n", - __FUNCTION__, attr.mq_msgsize, MSGSIZE); + printf ("%s: mq_msgsize wrong: is %jd, expecte %d\n", + __FUNCTION__, (intmax_t) attr.mq_msgsize, MSGSIZE); exit (1); } |