From 5b5c72e73e217d6b20cfcbe98cd98253704729b2 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 1 Oct 2021 13:40:04 +0200 Subject: [PATCH] REVERT LATER: More debugging logging --- src/slic3r/GUI/SendSystemInfoDialog.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/slic3r/GUI/SendSystemInfoDialog.cpp b/src/slic3r/GUI/SendSystemInfoDialog.cpp index ee1e4c5c3..e27e981ea 100644 --- a/src/slic3r/GUI/SendSystemInfoDialog.cpp +++ b/src/slic3r/GUI/SendSystemInfoDialog.cpp @@ -266,6 +266,13 @@ static std::string get_unique_id() unique = macs.front(); } free(AdapterInfo); + + // DEBUGGING ONLY: + printf("SENDSYSTEMINFODIALOG DEBUGGING: Windows MAC: "); + for (unsigned char c : unique) + printf("%02X ", c); + printf("\n"); + #elif __APPLE__ constexpr int buf_size = 100; char buf[buf_size] = ""; @@ -278,6 +285,9 @@ static std::string get_unique_id() // Now convert the string to std::vector. for (char* c = buf; *c != 0; ++c) unique.emplace_back((unsigned char)(*c)); + + // DEBUGGING ONLY: + std::cout << "SENDSYSTEMINFODIALOG DEBUGGING: Apple hardware UUID: " << buf << std::endl; #else // Linux/BSD constexpr size_t max_len = 100; char cline[max_len] = ""; @@ -291,6 +301,9 @@ static std::string get_unique_id() // Now convert the string to std::vector. for (char* c = cline; *c != 0; ++c) unique.emplace_back((unsigned char)(*c)); + + // DEBUGGING ONLY: + std::cout << "SENDSYSTEMINFODIALOG DEBUGGING: Linux machine-id: " << cline << std::endl; #endif // In case that we did not manage to get the unique info, just return an empty