mctp-demux-daemon: fix eid in log message
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Change-Id: If1337e896a58784f4ba7a55f3dee6b37e28662d3
diff --git a/utils/mctp-demux-daemon.c b/utils/mctp-demux-daemon.c
index 151d915..cb4cb2d 100644
--- a/utils/mctp-demux-daemon.c
+++ b/utils/mctp-demux-daemon.c
@@ -314,12 +314,13 @@
goto out_close;
}
+ eid = buf[0];
+
if (ctx->verbose)
fprintf(stderr,
"client[%d] sent message: dest 0x%02x len %d\n",
idx, eid, rc - 1);
- eid = buf[0];
if (eid == ctx->local_eid)
rx_message(eid, ctx, buf + 1, rc - 1);