a1962d0
diff -up cups-1.4rc1/scheduler/printers.c.str3308 cups-1.4rc1/scheduler/printers.c
a1962d0
--- cups-1.4rc1/scheduler/printers.c.str3308	2009-08-26 18:16:22.948769384 +0100
a1962d0
+++ cups-1.4rc1/scheduler/printers.c	2009-08-26 18:16:23.649770491 +0100
a1962d0
@@ -3718,10 +3718,6 @@ add_printer_formats(cupsd_printer_t *p)	
a1962d0
                       p->name, mimetype);
a1962d0
   }
a1962d0
 
a1962d0
-  cupsdLogMessage(CUPSD_LOG_DEBUG2,
a1962d0
-                  "add_printer_formats: %s: %d supported types",
a1962d0
-		  p->name, cupsArrayCount(p->filetypes) + 1);
a1962d0
-
a1962d0
  /*
a1962d0
   * Add the file formats that can be filtered...
a1962d0
   */
a1962d0
@@ -3732,9 +3728,13 @@ add_printer_formats(cupsd_printer_t *p)	
a1962d0
   else
a1962d0
     i = 0;
a1962d0
 
a1962d0
+  cupsdLogMessage(CUPSD_LOG_DEBUG2,
a1962d0
+                  "add_printer_formats: %s: %d supported types",
a1962d0
+                  p->name, cupsArrayCount(p->filetypes) + i);
a1962d0
+
a1962d0
   attr = ippAddStrings(p->attrs, IPP_TAG_PRINTER, IPP_TAG_MIMETYPE,
a1962d0
                        "document-format-supported",
a1962d0
-		       cupsArrayCount(p->filetypes) + 1, NULL, NULL);
a1962d0
+                       cupsArrayCount(p->filetypes) + i, NULL, NULL);
a1962d0
 
a1962d0
   if (i)
a1962d0
     attr->values[0].string.text = _cupsStrAlloc("application/octet-stream");