tests: BT privacy: Fix printf format

Fix the print format string so the "%" is printed
instead of a bogus value.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2023-09-25 14:30:59 +02:00 committed by Carles Cufí
commit 0ff2ba8c8e

View file

@ -83,7 +83,7 @@ static void test_address(bt_addr_le_t *addr)
rpa_timeout_ms = CONFIG_BT_RPA_TIMEOUT * MSEC_PER_SEC;
if (abs(diff_ms - rpa_timeout_ms) > (rpa_timeout_ms / 10)) {
FAIL("RPA rotation did not occur within +-10% of CONFIG_BT_RPA_TIMEOUT\n");
FAIL("RPA rotation did not occur within +-10%% of CONFIG_BT_RPA_TIMEOUT\n");
}
bt_addr_le_copy(&adv_set_data[adv_index].old_addr, addr);