void LogDebug(const char *msg) { print_system_log(DLOG_DEBUG, LOG_TAG, "%s", msg); }
+void LogWarning(const char *msg) { print_system_log(DLOG_WARN, LOG_TAG, "%s", msg); }
+
void LogError(const char *msg) { print_system_log(DLOG_ERROR, LOG_TAG, "%s", msg); }
void TestContents::UpdateLinkedData(const wauthn_hybrid_linked_data_s *ld)
typedef std::vector<uint8_t> Buffer;
Buffer ToBuffer(wauthn_const_buffer_s buff);
void LogDebug(const char *msg);
+void LogWarning(const char *msg);
void LogError(const char *msg);
enum TestState {
[[nodiscard]] int DoTurnBluetooth(int alreadyDoneError)
{
int err;
- LogError("Turning bluetooth on...");
+ LogWarning("Turning bluetooth on...");
int res = bt_initialize();
if (res != BT_ERROR_NONE) {
res = bt_adapter_enable();
if (res == alreadyDoneError) {
- LogError(" already done...");
+ LogWarning(" already done...");
res = BT_ERROR_NONE;
goto cleanup_callback;
}
if (res != BT_ERROR_NONE) {
- LogError("enabling adapter failed.");
+ LogError(" enabling adapter failed.");
goto cleanup_callback;
}
// Wait for the callback.
res = err;
}
if (res == BT_ERROR_NONE)
- LogError(" done.");
+ LogWarning(" done.");
return res;
}