projects
/
deliverable
/
babeltrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03d0d7e
)
Fix: 32bit values index_major/minor used as 64bit
author
Michael Jeanson
<mjeanson@efficios.com>
Tue, 18 Aug 2015 19:39:41 +0000
(15:39 -0400)
committer
Jérémie Galarneau
<jeremie.galarneau@efficios.com>
Tue, 18 Aug 2015 21:33:17 +0000
(17:33 -0400)
This patch fixes compiler warnings on big endian architectures where
be64toh() is a nop and returns the original type.
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
formats/ctf/ctf.c
patch
|
blob
|
blame
|
history
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 5436c2a72b9e6b65812b0105f5faf28131822ac9..74fcb5bc60fe316cf45e6926ae047a15aedd0ddf 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-1853,10
+1853,10
@@
int import_stream_packet_index(struct ctf_trace *td,
goto error;
}
if (be32toh(index_hdr.index_major) != CTF_INDEX_MAJOR) {
- fprintf(stderr, "[error] Incompatible index file %" PRIu
64
- ".%" PRIu
64
", supported %d.%d\n",
- be
64
toh(index_hdr.index_major),
- be
64
toh(index_hdr.index_minor), CTF_INDEX_MAJOR,
+ fprintf(stderr, "[error] Incompatible index file %" PRIu
32
+ ".%" PRIu
32
", supported %d.%d\n",
+ be
32
toh(index_hdr.index_major),
+ be
32
toh(index_hdr.index_minor), CTF_INDEX_MAJOR,
CTF_INDEX_MINOR);
ret = -1;
goto error;
This page took
0.027876 seconds
and
5
git commands to generate.