diff options
author | H.J. Lu <hongjiu.lu@intel.com> | 2012-02-03 10:16:03 -0800 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2012-02-06 13:33:54 +0000 |
commit | 0b315b65432cda20c7e5608c5124289036522fa7 (patch) | |
tree | 6c20fc959720f49327552948148b9f62de5a0884 /ipc.c | |
parent | 6ca2610cee82e0bc80331093b7a713f6fc593eec (diff) | |
download | strace-0b315b65432cda20c7e5608c5124289036522fa7.tar.gz strace-0b315b65432cda20c7e5608c5124289036522fa7.tar.bz2 strace-0b315b65432cda20c7e5608c5124289036522fa7.tar.xz |
Cast to long for %l in printf
Cast a value to long for %l in printf to avoid compiler warning
on systems where it may be long long.
* count.c (call_summary_pers): Cast to long.
* ipc.c (sys_mq_open, printmqattr): Likewise.
* quota.c (decode_cmd_data): Likewise.
* resource.c (sys_sysinfo): Likewise.
* time.c (tprint_timex): Likewise.
Diffstat (limited to 'ipc.c')
-rw-r--r-- | ipc.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -482,7 +482,8 @@ sys_mq_open(struct tcb *tcp) tprints("{ ??? }"); else tprintf("{mq_maxmsg=%ld, mq_msgsize=%ld}", - attr.mq_maxmsg, attr.mq_msgsize); + (long) attr.mq_maxmsg, + (long) attr.mq_msgsize); # endif } } @@ -541,7 +542,8 @@ printmqattr(struct tcb *tcp, long addr) tprints("{mq_flags="); tprint_open_modes(attr.mq_flags); tprintf(", mq_maxmsg=%ld, mq_msgsize=%ld, mq_curmsg=%ld}", - attr.mq_maxmsg, attr.mq_msgsize, attr.mq_curmsgs); + (long) attr.mq_maxmsg, (long) attr.mq_msgsize, + (long) attr.mq_curmsgs); # endif } } |