diff options
author | norly <ny-git@enpas.org> | 2019-03-19 23:01:05 +0100 |
---|---|---|
committer | norly <ny-git@enpas.org> | 2019-03-19 23:01:05 +0100 |
commit | 8945d1c0369be6cac92811a55e889cfd5354f309 (patch) | |
tree | f9e08f566f80513d91a249f19dce93c0c2d35c6e /src | |
parent | 647c836a379d94b3b9a28f363bd55772761cf635 (diff) |
Fix a warning, better comments
Diffstat (limited to 'src')
-rw-r--r-- | src/bap-rx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bap-rx.c b/src/bap-rx.c index d82f03d..2a75704 100644 --- a/src/bap-rx.c +++ b/src/bap-rx.c @@ -30,8 +30,9 @@ struct BAP_Frame* vag_bap_handle_can_frame(struct BAP_RXer *bap, struct can_fram unsigned short header; unsigned this_len; + /* Sanity checks */ if (frame->can_dlc < 4) { - VAG_DEBUG("Error: Frame too short\n"); + VAG_DEBUG("bap_handle_can_frame: Frame too short\n"); } if (bap->mfchannel[mfchannel]) { @@ -39,6 +40,7 @@ struct BAP_Frame* vag_bap_handle_can_frame(struct BAP_RXer *bap, struct can_fram } bap->mfchannel[mfchannel] = NULL; + /* Frame looks okay, start parsing */ bap_frame = vag_bap_frame_alloc(); if (!bap_frame) { VAG_DEBUG("bap_handle_can_frame: Failed to allocate new frame\n"); |