diff options
author | Marius Gripsgard <marius@ubports.com> | 2022-07-06 01:48:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-06 01:48:57 +0200 |
commit | 274b977311cdbddb1d057e908394a5cdad451885 (patch) | |
tree | c59a655e809cc4d5bf4c0e554a7bc638f7890f60 | |
parent | 4d895fa3e739c5a67905684b39707d96763a8789 (diff) | |
parent | 4e457eef34459bf3a87720762eb66bb65a8ea54d (diff) | |
download | ayatana-indicator-display-274b977311cdbddb1d057e908394a5cdad451885.tar.gz ayatana-indicator-display-274b977311cdbddb1d057e908394a5cdad451885.tar.bz2 ayatana-indicator-display-274b977311cdbddb1d057e908394a5cdad451885.zip |
Merge pull request #52 from JamiKettunen/musl-tests
tests/utils/qmain.cpp: Add missing include for libintl.h
-rw-r--r-- | src/adbd-client.cpp | 10 | ||||
-rw-r--r-- | tests/utils/qmain.cpp | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/adbd-client.cpp b/src/adbd-client.cpp index f4f419f..d5abfb5 100644 --- a/src/adbd-client.cpp +++ b/src/adbd-client.cpp @@ -107,7 +107,7 @@ private: void on_public_key_response(PKResponse response) { - g_debug("%s thread %p got response %d", G_STRLOC, (void*)g_thread_self(), int(response)); + g_debug("%s thread %p got response %d", G_STRLOC, g_thread_self(), int(response)); // set m_pkresponse and wake up the waiting worker thread m_pkresponse = response; @@ -125,11 +125,11 @@ private: while (!g_cancellable_is_cancelled(m_cancellable)) { - g_debug("%s thread %p creating a client socket to '%s'", G_STRLOC, (void*)g_thread_self(), socket_path.c_str()); + g_debug("%s thread %p creating a client socket to '%s'", G_STRLOC, g_thread_self(), socket_path.c_str()); auto socket = create_client_socket(socket_path); bool got_valid_req = false; - g_debug("%s thread %p calling read_request", G_STRLOC, (void*)g_thread_self()); + g_debug("%s thread %p calling read_request", G_STRLOC, g_thread_self()); std::string reqstr; if (socket != nullptr) reqstr = read_request(socket); @@ -139,7 +139,7 @@ private: if (reqstr.substr(0,2) == "PK") { PKResponse response = PKResponse::DENY; const auto public_key = reqstr.substr(2); - g_debug("%s thread %p got pk [%s]", G_STRLOC, (void*)g_thread_self(), public_key.c_str()); + g_debug("%s thread %p got pk [%s]", G_STRLOC, g_thread_self(), public_key.c_str()); if (!public_key.empty()) { got_valid_req = true; std::unique_lock<std::mutex> lk(m_pkresponse_mutex); @@ -151,7 +151,7 @@ private: }); response = m_pkresponse; g_debug("%s thread %p got response '%d', is-cancelled %d", G_STRLOC, - (void*)g_thread_self(), + g_thread_self(), int(response), int(g_cancellable_is_cancelled(m_cancellable))); } diff --git a/tests/utils/qmain.cpp b/tests/utils/qmain.cpp index 01a7892..58b1125 100644 --- a/tests/utils/qmain.cpp +++ b/tests/utils/qmain.cpp @@ -22,6 +22,7 @@ #include <QCoreApplication> #include <QTimer> #include <gtest/gtest.h> +#include <libintl.h> #include <libqtdbusmock/DBusMock.h> |