From bd15c2b71fb2edb9cfe51251e1795592d5d95f82 Mon Sep 17 00:00:00 2001 From: Siddharth Chandrasekaran Date: Thu, 28 Mar 2024 16:24:31 +0100 Subject: [PATCH] phy: Enhance package scan logging by printing mark-byte Signed-off-by: Siddharth Chandrasekaran --- src/osdp_phy.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/osdp_phy.c b/src/osdp_phy.c index c6ce401..ff4743b 100644 --- a/src/osdp_phy.c +++ b/src/osdp_phy.c @@ -518,8 +518,9 @@ int osdp_phy_check_packet(struct osdp_pd *pd) } pd->packet_len = ret; if (pd->packet_scan_skip) { - LOG_WRN("Packet scan skipped %u bytes before SoM", - pd->packet_scan_skip); + LOG_WRN("Packet scan skipped:%u mark:%d", + pd->packet_scan_skip, + ISSET_FLAG(pd, PD_FLAG_PKT_HAS_MARK)); pd->packet_scan_skip = 0; } }