Module Name: src
Committed By: christos
Date: Fri Mar 18 13:23:00 UTC 2016
Modified Files:
src/external/cddl/osnet/dist/tools/ctf/cvt: ctf.c
Log Message:
swap first, then write.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c
diff -u src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c:1.10 src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c:1.11
--- src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c:1.10 Thu Feb 4 12:40:55 2016
+++ src/external/cddl/osnet/dist/tools/ctf/cvt/ctf.c Fri Mar 18 09:23:00 2016
@@ -173,12 +173,12 @@ write_objects(iidesc_t *idp, ctf_buf_t *
{
ushort_t id = (idp ? idp->ii_dtype->t_id : 0);
- ctf_buf_write(b, &id, sizeof (id));
-
if (target_requires_swap) {
SWAP_16(id);
}
+ ctf_buf_write(b, &id, sizeof (id));
+
debug(3, "Wrote object %s (%d)\n", (idp ? idp->ii_name : "(null)"), id);
}