]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Update browsw output.
authorMichael R Sweet <msweet@msweet.org>
Wed, 10 Apr 2024 21:31:25 +0000 (17:31 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 10 Apr 2024 21:31:25 +0000 (17:31 -0400)
cups/testdnssd.c

index aeab60c5c5e430a508aba36109ee30a37faaf842..c6dfbf4d4158433df4d103231297b3ebf6d2ca69 100644 (file)
@@ -214,6 +214,9 @@ main(int  argc,                             // I - Number of command-line arguments
     if ((dnssd = cupsDNSSDNew(error_cb, &testdata)) == NULL)
       return (1);
 
+    puts("IfIdx Service Name");
+    puts("----- ----------------------------------------------------------------");
+
     if ((browse = cupsDNSSDBrowseNew(dnssd, CUPS_DNSSD_IF_INDEX_ANY, argv[2], NULL, browse_print_cb, &testdata)) == NULL)
     {
       cupsDNSSDDelete(dnssd);
@@ -302,7 +305,7 @@ browse_print_cb(
                                        // Test data
 
 
-  printf("%5u %s.%s.%s\n", if_index, name, regtype, domain);
+  printf("%5u %s.%s%s\n", if_index, name, regtype, domain);
 
   cupsMutexLock(&data->mutex);
   data->browse_dnssd_count ++;