1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

swapping byte order before output if necessary

git-svn-id: https://zerberus.eonerc.rwth-aachen.de:8443/svn/s2ss/trunk@215 8ec27952-4edc-4aab-86aa-e87bb2611832
This commit is contained in:
Steffen Vogel 2014-09-07 16:29:03 +00:00
parent 9d0d4423d0
commit 0f8a0ceb52

View file

@ -30,7 +30,8 @@ void msg_swap(struct msg *m)
int msg_fprint(FILE *f, struct msg *m)
{
assert(m->endian == MSG_ENDIAN_HOST);
if (m->endian != MSG_ENDIAN_HOST)
msg_swap(m);
fprintf(f, "%-8hu", m->sequence);