From 5d619de4610fa00d0b633e1916c49e59824440ff Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 19 Dec 2014 14:00:59 -0800 Subject: Replace %ld/%lu with %jd/%ju and cast to intmax_t/uintmax_t --- rt/tst-mqueue4.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'rt/tst-mqueue4.c') 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; } -- cgit 1.4.1