]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix the debug output from the DNS-SD backend when using Avahi (STR #4444)
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 30 Jun 2014 14:27:01 +0000 (14:27 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Mon, 30 Jun 2014 14:27:01 +0000 (14:27 +0000)
(Avahi doesn't include the trailing dot for the regtype value)

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11969 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-1.7.txt
backend/dnssd.c

index 76eabe97e1816dadd8def82312c8f5c836c8a5b8..4d06a687b5b67f4a39e47be8461cc4fee6ad6d92 100644 (file)
@@ -15,6 +15,8 @@ CHANGES IN CUPS V1.7.4
          localization (STR #4436)
        - Fixed an "IPP read error" issue (STR #4440)
        - Fixed the --disable-libusb configure option (STR #4439)
+       - Fixed the debug output from the DNS-SD backend when using Avahi
+         (STR #4444)
 
 
 CHANGES IN CUPS V1.7.3
index bac13b000242c35a02fe635ba60c85b0c75c546d..5f0ec9e0454613256246363052d45686de89c239 100644 (file)
@@ -921,8 +921,12 @@ get_device(cups_array_t *devices,  /* I - Device array */
   * Yes, add the device...
   */
 
-  fprintf(stderr, "DEBUG: Found \"%s.%s%s\"...\n", serviceName, regtype,
-         replyDomain);
+#ifdef HAVE_DNSSD
+  DNSServiceConstructFullName(fullName, serviceName, regtype, replyDomain);
+#else /* HAVE_AVAHI */
+  avahi_service_name_join(fullName, kDNSServiceMaxDomainName,
+                          serviceName, regtype, replyDomain);
+#endif /* HAVE_DNSSD */
 
   device           = calloc(sizeof(cups_device_t), 1);
   device->name     = strdup(serviceName);