From 4167e89d8fbba56198ae10635182b43106a5faf0 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 21 Aug 2025 09:56:18 -0400 Subject: [PATCH] monitor: Print message if the frame information cannot be found While processing Number of Packeted Completed event the code attempts to print the frame information of each frame being acked but if no frame was sent it didn't print anything, so this changes it to print :#(frame not found) --- monitor/packet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/monitor/packet.c b/monitor/packet.c index ca7eaea21..d5d906091 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -11222,8 +11222,10 @@ static void packet_dequeue_tx(struct timeval *tv, uint16_t handle) } frame = queue_pop_head(conn->tx_q); - if (!frame) + if (!frame) { + print_field("#(frame not found)"); return; + } timersub(tv, &frame->tv, &delta); -- 2.47.3