diff options
author | David Lamparter <equinox@diac24.net> | 2013-03-25 22:41:56 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2013-03-25 22:41:56 +0100 |
commit | 2de09bbd1dc380734946b2389f1177f48ae0b4e5 (patch) | |
tree | ce091be56d2c22b818f767da5bb4da7cfe365e87 /cethcan/can.c | |
parent | f5c47e42e40e980c51fa561ca8bb0beb421ae0c0 (diff) |
cethcan: more code
Diffstat (limited to 'cethcan/can.c')
-rw-r--r-- | cethcan/can.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cethcan/can.c b/cethcan/can.c index 4a61756..a36fd6c 100644 --- a/cethcan/can.c +++ b/cethcan/can.c @@ -42,7 +42,8 @@ void can_broadcast(struct can_user *origin, struct can_message *msg) } for (size_t i = 0; i < msg->dlc; i++) sprintf(buf + 3 * i, " %02x", msg->bytes[i]); - lprintf("%08x (%zu)%s", (unsigned)msg->daddr, msg->dlc, buf); + lprintf("%s: %08x (%zu)%s", origin->name, + (unsigned)msg->daddr, msg->dlc, buf); for (u = users; u; u = u->next) if (u != origin) |