Blame SOURCES/cups-filter-debug.patch

ce62dc
diff -up cups-1.6b1/scheduler/job.c.filter-debug cups-1.6b1/scheduler/job.c
ce62dc
--- cups-1.6b1/scheduler/job.c.filter-debug	2012-05-25 16:06:01.000000000 +0200
ce62dc
+++ cups-1.6b1/scheduler/job.c	2012-05-25 16:07:46.309259511 +0200
ce62dc
@@ -625,10 +625,28 @@ cupsdContinueJob(cupsd_job_t *job)	/* I
ce62dc
 
ce62dc
     if (!filters)
ce62dc
     {
ce62dc
+      mime_filter_t *current;
ce62dc
+
ce62dc
       cupsdLogJob(job, CUPSD_LOG_ERROR,
ce62dc
 		  "Unable to convert file %d to printable format.",
ce62dc
 		  job->current_file);
ce62dc
 
ce62dc
+      cupsdLogJob(job, CUPSD_LOG_ERROR,
ce62dc
+		  "Required: %s/%s -> %s/%s",
ce62dc
+		  job->filetypes[job->current_file]->super,
ce62dc
+		  job->filetypes[job->current_file]->type,
ce62dc
+		  job->printer->filetype->super,
ce62dc
+		  job->printer->filetype->type);
ce62dc
+
ce62dc
+      for (current = (mime_filter_t *)cupsArrayFirst(MimeDatabase->srcs);
ce62dc
+	   current;
ce62dc
+	   current = (mime_filter_t *)cupsArrayNext(MimeDatabase->srcs))
ce62dc
+	  cupsdLogJob(job, CUPSD_LOG_ERROR,
ce62dc
+		      "Available: %s/%s -> %s/%s (%s)",
ce62dc
+		      current->src->super, current->src->type,
ce62dc
+		      current->dst->super, current->dst->type,
ce62dc
+		      current->filter);
ce62dc
+
ce62dc
       abort_message = "Aborting job because it cannot be printed.";
ce62dc
       abort_state   = IPP_JOB_ABORTED;
ce62dc