* [PATCH BlueZ] monitor: Fix runtime error @ 2023-08-31 21:05 Luiz Augusto von Dentz 2023-08-31 22:22 ` [BlueZ] " bluez.test.bot 2023-09-01 16:54 ` [PATCH BlueZ] " patchwork-bot+bluetooth 0 siblings, 2 replies; 3+ messages in thread From: Luiz Augusto von Dentz @ 2023-08-31 21:05 UTC (permalink / raw) To: linux-bluetooth From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> This fixes the following runtime error: monitor/packet.c:10476:2: runtime error: division by zero Floating point exception --- monitor/packet.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/monitor/packet.c b/monitor/packet.c index 8eae8c9ea8fa..279f5408df42 100644 --- a/monitor/packet.c +++ b/monitor/packet.c @@ -10473,11 +10473,14 @@ static void packet_dequeue_tx(struct timeval *tv, uint16_t handle) packet_latency_add(&conn->tx_l, &delta); - print_field("#%zu: len %zu (%lld Kb/s)", frame->num, frame->len, - frame->len * 8 / TV_MSEC(delta)); - print_field("Latency: %lld msec (%lld-%lld msec ~%lld msec)", - TV_MSEC(delta), TV_MSEC(conn->tx_l.min), - TV_MSEC(conn->tx_l.max), TV_MSEC(conn->tx_l.med)); + if (TV_MSEC(delta)) { + print_field("#%zu: len %zu (%lld Kb/s)", frame->num, frame->len, + frame->len * 8 / TV_MSEC(delta)); + print_field("Latency: %lld msec (%lld-%lld msec ~%lld msec)", + TV_MSEC(delta), TV_MSEC(conn->tx_l.min), + TV_MSEC(conn->tx_l.max), + TV_MSEC(conn->tx_l.med)); + } l2cap_dequeue_frame(&delta, conn); -- 2.41.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [BlueZ] monitor: Fix runtime error 2023-08-31 21:05 [PATCH BlueZ] monitor: Fix runtime error Luiz Augusto von Dentz @ 2023-08-31 22:22 ` bluez.test.bot 2023-09-01 16:54 ` [PATCH BlueZ] " patchwork-bot+bluetooth 1 sibling, 0 replies; 3+ messages in thread From: bluez.test.bot @ 2023-08-31 22:22 UTC (permalink / raw) To: linux-bluetooth, luiz.dentz [-- Attachment #1: Type: text/plain, Size: 1387 bytes --] This is automated email and please do not reply to this email! Dear submitter, Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series: PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=780953 ---Test result--- Test Summary: CheckPatch PASS 0.48 seconds GitLint PASS 0.32 seconds BuildEll PASS 33.86 seconds BluezMake PASS 1025.75 seconds MakeCheck PASS 13.10 seconds MakeDistcheck PASS 190.23 seconds CheckValgrind PASS 309.83 seconds CheckSmatch WARNING 407.76 seconds bluezmakeextell PASS 124.64 seconds IncrementalBuild PASS 817.95 seconds ScanBuild PASS 1254.40 seconds Details ############################## Test: CheckSmatch - WARNING Desc: Run smatch tool with source Output: monitor/packet.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.monitor/packet.c:1856:26: warning: Variable length array is used.monitor/packet.c: note: in included file:monitor/bt.h:3606:52: warning: array of flexible structuresmonitor/bt.h:3594:40: warning: array of flexible structures --- Regards, Linux Bluetooth ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH BlueZ] monitor: Fix runtime error 2023-08-31 21:05 [PATCH BlueZ] monitor: Fix runtime error Luiz Augusto von Dentz 2023-08-31 22:22 ` [BlueZ] " bluez.test.bot @ 2023-09-01 16:54 ` patchwork-bot+bluetooth 1 sibling, 0 replies; 3+ messages in thread From: patchwork-bot+bluetooth @ 2023-09-01 16:54 UTC (permalink / raw) To: Luiz Augusto von Dentz; +Cc: linux-bluetooth Hello: This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>: On Thu, 31 Aug 2023 14:05:54 -0700 you wrote: > From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> > > This fixes the following runtime error: > > monitor/packet.c:10476:2: runtime error: division by zero > Floating point exception > > [...] Here is the summary with links: - [BlueZ] monitor: Fix runtime error https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c7fd9310b925 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-09-01 16:54 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2023-08-31 21:05 [PATCH BlueZ] monitor: Fix runtime error Luiz Augusto von Dentz 2023-08-31 22:22 ` [BlueZ] " bluez.test.bot 2023-09-01 16:54 ` [PATCH BlueZ] " patchwork-bot+bluetooth
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.