Skip to contentSkip to conversation

monitor: Print message if the frame information cannot be found

PATCH Applied Luiz Augusto von Dentz 2 participants 2 messages Aug 21, 2025 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 monitor: Print message if the frame information cannot be found

From: Luiz Augusto von Dentz <[email protected]>

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(-)
monitor/packet.c +3 -1
index ca7eaea21138..d5d906091adf 100644
@@ -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);
 
Signature · 1 line
2.50.1
#1 lore raw
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 8 lines · On Thu, 21 Aug 2025 11:03:52 -0400 you wrote:

From: Luiz Augusto von Dentz <[email protected]>

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)

[...]

Here is the summary with links:
- [BlueZ,v1] monitor: Print message if the frame information cannot be found

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=4167e89d8fbb

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html