Commit 33a4d901 authored by Alexandre Julliard's avatar Alexandre Julliard

ws2_32/tests: Print IP addresses as unsigned.

parent 9d38b8ee
...@@ -4757,7 +4757,7 @@ static void test_gethostbyname_hack(void) ...@@ -4757,7 +4757,7 @@ static void test_gethostbyname_hack(void)
} }
ok(memcmp(he->h_addr_list[0], loopback, he->h_length) == 0, ok(memcmp(he->h_addr_list[0], loopback, he->h_length) == 0,
"gethostbyname(\"localhost\") returned %d.%d.%d.%d\n", "gethostbyname(\"localhost\") returned %u.%u.%u.%u\n",
he->h_addr_list[0][0], he->h_addr_list[0][1], he->h_addr_list[0][2], he->h_addr_list[0][0], he->h_addr_list[0][1], he->h_addr_list[0][2],
he->h_addr_list[0][3]); he->h_addr_list[0][3]);
} }
...@@ -4781,7 +4781,7 @@ static void test_gethostbyname_hack(void) ...@@ -4781,7 +4781,7 @@ static void test_gethostbyname_hack(void)
if (he->h_addr_list[0][0] == 127) if (he->h_addr_list[0][0] == 127)
{ {
ok(memcmp(he->h_addr_list[0], magic_loopback, he->h_length) == 0, ok(memcmp(he->h_addr_list[0], magic_loopback, he->h_length) == 0,
"gethostbyname(\"%s\") returned %d.%d.%d.%d not 127.12.34.56\n", "gethostbyname(\"%s\") returned %u.%u.%u.%u not 127.12.34.56\n",
name, he->h_addr_list[0][0], he->h_addr_list[0][1], name, he->h_addr_list[0][0], he->h_addr_list[0][1],
he->h_addr_list[0][2], he->h_addr_list[0][3]); he->h_addr_list[0][2], he->h_addr_list[0][3]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment