WIN32: replace LOG_DEBUG() with LOG_DEBUG2()
Compiling dethrace rises this error when it is compiled with MinGW:
dethrace/src/harness/os/windows.c: In function 'OS_GetAdapterAddress':
dethrace/src/harness/os/windows.c:440:47: error: macro 'LOG_DEBUG' passed 2 arguments, but takes just 1
440 | LOG_DEBUG("name: %s", aa->FriendlyName); // Skip if name is provided and doesn't match FriendlyName
| ^
According to the content of dethrace/src/harness/include/harness/trace.h, I replaced with LOG_DEBUG2() macro and the problem has been solved.
This commit is contained in:
parent
a9f82ef975
commit
5787ec29b0
|
|
@ -437,7 +437,7 @@ int OS_GetAdapterAddress(char* name, void* pSockaddr_in) {
|
|||
}
|
||||
|
||||
for (IP_ADAPTER_ADDRESSES* aa = adapter_addrs; aa != NULL; aa = aa->Next) {
|
||||
LOG_DEBUG("name: %s", aa->FriendlyName); // Skip if name is provided and doesn't match FriendlyName
|
||||
LOG_DEBUG2("name: %s", aa->FriendlyName); // Skip if name is provided and doesn't match FriendlyName
|
||||
if (wcslen(wideName) > 0 && wcscmp(aa->FriendlyName, wideName) != 0)
|
||||
continue;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue