iphlpapi/tests: Use standard wine_dbgstr_longlong.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alistair Leslie-Hughes 2017-07-03 22:29:10 +00:00 committed by Alexandre Julliard
parent 287be7c5ee
commit 3548b25108
1 changed files with 2 additions and 12 deletions

View File

@ -167,16 +167,6 @@ static const char *ntoa( DWORD ip )
return buffer;
}
static inline const char* debugstr_longlong(ULONGLONG ll)
{
static char string[17];
if (sizeof(ll) > sizeof(unsigned long) && ll >> 32)
sprintf(string, "%lx%08lx", (unsigned long)(ll >> 32), (unsigned long)ll);
else
sprintf(string, "%lx", (unsigned long)ll);
return string;
}
/*
still-to-be-tested 98-only functions:
GetUniDirectionalAdapterInfo
@ -1513,8 +1503,8 @@ static void test_GetAdaptersAddresses(void)
}
if (S(U(*aa)).Length < sizeof(IP_ADAPTER_ADDRESSES_LH)) continue;
trace("TransmitLinkSpeed: %s\n", debugstr_longlong(aa->TransmitLinkSpeed));
trace("ReceiveLinkSpeed: %s\n", debugstr_longlong(aa->ReceiveLinkSpeed));
trace("TransmitLinkSpeed: %s\n", wine_dbgstr_longlong(aa->TransmitLinkSpeed));
trace("ReceiveLinkSpeed: %s\n", wine_dbgstr_longlong(aa->ReceiveLinkSpeed));
trace("FirstWinsServerAddress:%p\n", aa->FirstWinsServerAddress);
trace("FirstGatewayAddress: %p\n", aa->FirstGatewayAddress);
trace("Ipv4Metric: %u\n", aa->Ipv4Metric);