REVERT LATER: More debugging logging
This commit is contained in:
parent
e8412d654c
commit
5b5c72e73e
@ -266,6 +266,13 @@ static std::string get_unique_id()
|
|||||||
unique = macs.front();
|
unique = macs.front();
|
||||||
}
|
}
|
||||||
free(AdapterInfo);
|
free(AdapterInfo);
|
||||||
|
|
||||||
|
// DEBUGGING ONLY:
|
||||||
|
printf("SENDSYSTEMINFODIALOG DEBUGGING: Windows MAC: ");
|
||||||
|
for (unsigned char c : unique)
|
||||||
|
printf("%02X ", c);
|
||||||
|
printf("\n");
|
||||||
|
|
||||||
#elif __APPLE__
|
#elif __APPLE__
|
||||||
constexpr int buf_size = 100;
|
constexpr int buf_size = 100;
|
||||||
char buf[buf_size] = "";
|
char buf[buf_size] = "";
|
||||||
@ -278,6 +285,9 @@ static std::string get_unique_id()
|
|||||||
// Now convert the string to std::vector<unsigned char>.
|
// Now convert the string to std::vector<unsigned char>.
|
||||||
for (char* c = buf; *c != 0; ++c)
|
for (char* c = buf; *c != 0; ++c)
|
||||||
unique.emplace_back((unsigned char)(*c));
|
unique.emplace_back((unsigned char)(*c));
|
||||||
|
|
||||||
|
// DEBUGGING ONLY:
|
||||||
|
std::cout << "SENDSYSTEMINFODIALOG DEBUGGING: Apple hardware UUID: " << buf << std::endl;
|
||||||
#else // Linux/BSD
|
#else // Linux/BSD
|
||||||
constexpr size_t max_len = 100;
|
constexpr size_t max_len = 100;
|
||||||
char cline[max_len] = "";
|
char cline[max_len] = "";
|
||||||
@ -291,6 +301,9 @@ static std::string get_unique_id()
|
|||||||
// Now convert the string to std::vector<unsigned char>.
|
// Now convert the string to std::vector<unsigned char>.
|
||||||
for (char* c = cline; *c != 0; ++c)
|
for (char* c = cline; *c != 0; ++c)
|
||||||
unique.emplace_back((unsigned char)(*c));
|
unique.emplace_back((unsigned char)(*c));
|
||||||
|
|
||||||
|
// DEBUGGING ONLY:
|
||||||
|
std::cout << "SENDSYSTEMINFODIALOG DEBUGGING: Linux machine-id: " << cline << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// In case that we did not manage to get the unique info, just return an empty
|
// In case that we did not manage to get the unique info, just return an empty
|
||||||
|
Loading…
Reference in New Issue
Block a user