File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2020,7 +2020,15 @@ static void smp_timeout(struct k_work *work)
2020
2020
struct k_work_delayable * dwork = k_work_delayable_from_work (work );
2021
2021
struct bt_smp * smp = CONTAINER_OF (dwork , struct bt_smp , work );
2022
2022
2023
- LOG_ERR ("SMP Timeout" );
2023
+ /* if number of flags or supported commands exceed capacity of one
2024
+ * atomic variable following error log shall be extended
2025
+ */
2026
+ BUILD_ASSERT (ATOMIC_BITMAP_SIZE (SMP_NUM_FLAGS ) == 1 );
2027
+ BUILD_ASSERT (ATOMIC_BITMAP_SIZE (BT_SMP_NUM_CMDS ) == 1 );
2028
+
2029
+ LOG_ERR ("SMP Timeout (flags:0x%08x allowed_cmds:0x%08x)" ,
2030
+ (unsigned int )atomic_get (& smp -> flags [0 ]),
2031
+ (unsigned int )atomic_get (& smp -> allowed_cmds [0 ]));
2024
2032
2025
2033
smp_pairing_complete (smp , BT_SMP_ERR_UNSPECIFIED );
2026
2034
You can’t perform that action at this time.
0 commit comments