From: Lennart Poettering Date: Fri, 27 Jan 2006 20:32:46 +0000 (+0000) Subject: small update-test debug output improvement X-Git-Url: http://git.meshlink.io/?a=commitdiff_plain;h=f3d66c3d13ca21275c80d16393d9fadd913c64ae;p=catta small update-test debug output improvement git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1112 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- diff --git a/avahi-core/update-test.c b/avahi-core/update-test.c index 017397b..bdffc0c 100644 --- a/avahi-core/update-test.c +++ b/avahi-core/update-test.c @@ -61,6 +61,8 @@ static void modify_txt_callback(AVAHI_GCC_UNUSED AvahiTimeout *e, void *userdata int ret; AvahiServer *s = userdata; + avahi_log_debug("modifying"); + ret = avahi_server_update_service_txt(s, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, "foo", "_http._tcp", NULL, "test2", NULL); assert(ret == AVAHI_OK); } @@ -84,7 +86,7 @@ int main(AVAHI_GCC_UNUSED int argc, AVAHI_GCC_UNUSED char *argv[]) { assert(server); avahi_server_config_free(&config); - poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 1000*20, 0), modify_txt_callback, server); + poll_api->timeout_new(poll_api, avahi_elapse_time(&tv, 1000*10, 0), modify_txt_callback, server); avahi_simple_poll_loop(simple_poll); }