diff options
author | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-06-22 20:01:18 +0000 |
---|---|---|
committer | jlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2006-06-22 20:01:18 +0000 |
commit | ed4869111296da3b8514751fab9dffaa3146cb87 (patch) | |
tree | 2c70846273867a43b55920695412df4069c77efa /scheduler/mime.c | |
parent | 9e22304f017970e9ba10cd593a1b07df4aafdabb (diff) |
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@181 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'scheduler/mime.c')
-rw-r--r-- | scheduler/mime.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scheduler/mime.c b/scheduler/mime.c index 0aa3d92e1..da82e4390 100644 --- a/scheduler/mime.c +++ b/scheduler/mime.c @@ -51,6 +51,7 @@ #include <stdlib.h> #include <ctype.h> +#include <cups/debug.h> #include <cups/dir.h> #include <cups/string.h> #include "mime.h" @@ -486,6 +487,8 @@ load_convs(mime_t *mime, /* I - MIME database */ if ((fp = cupsFileOpen(filename, "r")) == NULL) return; + DEBUG_printf(("\"%s\":\n", filename)); + /* * Then read each line from the file, skipping any comments in the file... */ @@ -496,6 +499,8 @@ load_convs(mime_t *mime, /* I - MIME database */ * Skip blank lines and lines starting with a #... */ + DEBUG_puts(line); + if (!line[0] || line[0] == '#') continue; @@ -544,7 +549,10 @@ load_convs(mime_t *mime, /* I - MIME database */ continue; if ((dsttype = mimeType(mime, super, type)) == NULL) + { + DEBUG_printf((" Destination type %s/%s not found!\n", super, type)); continue; + } /* * Then get the cost and filter program... @@ -575,7 +583,10 @@ load_convs(mime_t *mime, /* I - MIME database */ */ if (!add_fcache(filtercache, filter, filterpath)) + { + DEBUG_printf((" Filter %s not found in %s!\n", filter, filterpath)); continue; + } } /* @@ -655,6 +666,8 @@ load_types(mime_t *mime, /* I - MIME database */ if ((fp = cupsFileOpen(filename, "r")) == NULL) return; + DEBUG_printf(("\"%s\":\n", filename)); + /* * Then read each line from the file, skipping any comments in the file... */ @@ -665,6 +678,8 @@ load_types(mime_t *mime, /* I - MIME database */ * Skip blank lines and lines starting with a #... */ + DEBUG_puts(line); + if (!line[0] || line[0] == '#') continue; |