Skip to content

Commit

Permalink
log DNS name in avahi msg
Browse files Browse the repository at this point in the history
  • Loading branch information
ka9q committed Jul 21, 2022
1 parent 44438bd commit f885650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions avahi.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// $Id: avahi.c,v 1.16 2022/07/07 04:34:47 karn Exp $
// $Id: avahi.c,v 1.17 2022/07/21 04:10:42 karn Exp $
// Adapted from avahi's example file client-publish-service.c
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
Expand Down Expand Up @@ -339,7 +339,7 @@ static void entry_group_callback(AvahiEntryGroup *g, AvahiEntryGroupState state,
fprintf(stderr,"entry_group_callback(ESTAB)\n");

// The entry group has been established successfully
fprintf(stderr,"avahi service '%s' successfully established.\n", userdata->service_name);
fprintf(stderr,"avahi service '%s' (%s) successfully established.\n", userdata->service_name,userdata->dns_name);
pthread_mutex_lock(&userdata->avahi_mutex);
userdata->ready = 1;
pthread_cond_broadcast(&userdata->avahi_ready);
Expand Down

0 comments on commit f885650

Please sign in to comment.