id generator test printf

pull/10/head
yuqing 2016-04-12 11:23:43 +08:00
parent 3b68b068b1
commit 50236cd764
2 changed files with 2 additions and 3 deletions

View File

@ -34,8 +34,6 @@ int main(int argc, char *argv[])
return result;
}
//id_generator_next(&context, &id);
//printf("id: %"PRId64", %016lX\n", id, id);
for (i=0; i<100; i++)
{
result = id_generator_next(&context, &id);
@ -43,7 +41,7 @@ int main(int argc, char *argv[])
{
break;
}
printf("%"PRId64", %016lX\n", id, id);
printf("%"PRId64"\n", id);
}
id_generator_destroy(&context);

View File

@ -66,6 +66,7 @@ int main(int argc, char *argv[])
load_local_host_ip_addrs();
print_local_host_ip_addrs();
printf("first_local_ip: %s\n", get_first_local_ip());
getifconfigs(if_configs, sizeof(if_configs) / sizeof(if_configs[0]), &count);
printf("ifconfig count: %d\n", count);