X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Felf.c;h=cec100520e49377553bc03797dd79aab0394be6d;hb=baa8acf3af23bc5d9373144bef8147744b5ae01f;hp=b418176bcd7b901417c41a5ce23bedc0ef77d6ea;hpb=1698631bb3fbab41277b3953e193dd2fd4a74afa;p=lttng-ust.git diff --git a/src/common/elf.c b/src/common/elf.c index b418176b..cec10052 100644 --- a/src/common/elf.c +++ b/src/common/elf.c @@ -456,9 +456,9 @@ int lttng_ust_elf_get_build_id_from_segment( } if (!is_elf_native_endian(elf)) { - nhdr.n_namesz = bswap_32(nhdr.n_namesz); - nhdr.n_descsz = bswap_32(nhdr.n_descsz); - nhdr.n_type = bswap_32(nhdr.n_type); + nhdr.n_namesz = lttng_ust_bswap_32(nhdr.n_namesz); + nhdr.n_descsz = lttng_ust_bswap_32(nhdr.n_descsz); + nhdr.n_type = lttng_ust_bswap_32(nhdr.n_type); } offset += sizeof(nhdr) + nhdr.n_namesz; @@ -629,7 +629,7 @@ int lttng_ust_elf_get_debug_link_from_section(struct lttng_ust_elf *elf, goto error; } if (!is_elf_native_endian(elf)) { - _crc = bswap_32(_crc); + _crc = lttng_ust_bswap_32(_crc); } end: