diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-10-18 14:25:09 -0400 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2018-10-18 14:25:09 -0400 |
commit | fb863569eb4f51ae62a066dc8049d3ffc0efb0bb (patch) | |
tree | 8a209d6684fc82600cbc303ffceedff8fb1d7b58 /ppdc | |
parent | 941a5490cfa02953d2adcacb1838fd3d3e21976b (diff) | |
download | cups-fb863569eb4f51ae62a066dc8049d3ffc0efb0bb.tar.gz |
Move debug printfs to internal usage only.
Also, old MD5 code is internal-only.
Diffstat (limited to 'ppdc')
-rw-r--r-- | ppdc/Dependencies | 167 | ||||
-rw-r--r-- | ppdc/ppdc-private.h | 16 | ||||
-rw-r--r-- | ppdc/ppdc-shared.cxx | 4 |
3 files changed, 94 insertions, 93 deletions
diff --git a/ppdc/Dependencies b/ppdc/Dependencies index f570c1945..af0ac5b98 100644 --- a/ppdc/Dependencies +++ b/ppdc/Dependencies @@ -1,184 +1,183 @@ ppdc-array.o: ppdc-array.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-attr.o: ppdc-attr.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-catalog.o: ppdc-catalog.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-choice.o: ppdc-choice.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-constraint.o: ppdc-constraint.cxx ppdc-private.h ppdc.h \ ../cups/file.h ../cups/versioning.h ../cups/cups-private.h \ - ../cups/string-private.h ../config.h ../cups/debug-private.h \ - ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ - ../cups/cups.h ../cups/ipp.h ../cups/http.h ../cups/language.h \ - ../cups/pwg.h ../cups/http-private.h ../cups/language-private.h \ - ../cups/transcode.h ../cups/pwg-private.h ../cups/thread-private.h -ppdc-driver.o: ppdc-driver.cxx ppdc-private.h ppdc.h ../cups/file.h \ - ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ + ../cups/string-private.h ../config.h ../cups/array-private.h \ ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h +ppdc-driver.o: ppdc-driver.cxx ppdc-private.h ppdc.h ../cups/file.h \ + ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ + ../cups/thread-private.h ppdc-file.o: ppdc-file.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-filter.o: ppdc-filter.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-font.o: ppdc-font.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-group.o: ppdc-group.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-import.o: ppdc-import.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/ppd.h ../cups/raster.h ppdc-mediasize.o: ppdc-mediasize.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-message.o: ppdc-message.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-option.o: ppdc-option.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-profile.o: ppdc-profile.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-shared.o: ppdc-shared.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-source.o: ppdc-source.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ../cups/raster.h ../data/epson.h ../data/hp.h \ ../data/label.h ppdc-string.o: ppdc-string.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc-variable.o: ppdc-variable.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h genstrings.o: genstrings.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdc.o: ppdc.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdhtml.o: ppdhtml.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdi.o: ppdi.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h ppdmerge.o: ppdmerge.cxx ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/versioning.h \ - ../cups/array-private.h ../cups/array.h ../cups/ipp-private.h \ - ../cups/cups.h ../cups/file.h ../cups/ipp.h ../cups/http.h \ - ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ - ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ - ../cups/thread-private.h ../cups/ppd-private.h ../cups/ppd.h \ - ../cups/raster.h + ../config.h ../cups/versioning.h ../cups/array-private.h \ + ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/file.h \ + ../cups/ipp.h ../cups/http.h ../cups/language.h ../cups/pwg.h \ + ../cups/http-private.h ../cups/language-private.h ../cups/transcode.h \ + ../cups/pwg-private.h ../cups/thread-private.h ../cups/ppd-private.h \ + ../cups/ppd.h ../cups/raster.h ppdpo.o: ppdpo.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h testcatalog.o: testcatalog.cxx ppdc-private.h ppdc.h ../cups/file.h \ ../cups/versioning.h ../cups/cups-private.h ../cups/string-private.h \ - ../config.h ../cups/debug-private.h ../cups/array-private.h \ - ../cups/array.h ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h \ - ../cups/http.h ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ + ../config.h ../cups/array-private.h ../cups/array.h \ + ../cups/ipp-private.h ../cups/cups.h ../cups/ipp.h ../cups/http.h \ + ../cups/language.h ../cups/pwg.h ../cups/http-private.h \ ../cups/language-private.h ../cups/transcode.h ../cups/pwg-private.h \ ../cups/thread-private.h diff --git a/ppdc/ppdc-private.h b/ppdc/ppdc-private.h index 69d7aadfc..1f2e60617 100644 --- a/ppdc/ppdc-private.h +++ b/ppdc/ppdc-private.h @@ -21,10 +21,16 @@ // Macros... // -# define PPDC_NEW DEBUG_printf(("%s: %p new", class_name(), this)) -# define PPDC_NEWVAL(s) DEBUG_printf(("%s(\"%s\"): %p new", class_name(), s, this)) -# define PPDC_DELETE DEBUG_printf(("%s: %p delete", class_name(), this)) -# define PPDC_DELETEVAL(s) DEBUG_printf(("%s(\"%s\"): %p delete", class_name(), s, this)) - +# ifdef PPDC_DEBUG +# define PPDC_NEW DEBUG_printf(("%s: %p new", class_name(), this)) +# define PPDC_NEWVAL(s) DEBUG_printf(("%s(\"%s\"): %p new", class_name(), s, this)) +# define PPDC_DELETE DEBUG_printf(("%s: %p delete", class_name(), this)) +# define PPDC_DELETEVAL(s) DEBUG_printf(("%s(\"%s\"): %p delete", class_name(), s, this)) +# else +# define PPDC_NEW +# define PPDC_NEWVAL(s) +# define PPDC_DELETE +# define PPDC_DELETEVAL(s) +# endif /* PPDC_DEBUG */ #endif // !_PPDC_PRIVATE_H_ diff --git a/ppdc/ppdc-shared.cxx b/ppdc/ppdc-shared.cxx index 7379311e2..1b0152d3b 100644 --- a/ppdc/ppdc-shared.cxx +++ b/ppdc/ppdc-shared.cxx @@ -40,8 +40,6 @@ ppdcShared::~ppdcShared() void ppdcShared::release(void) { - DEBUG_printf(("%s: %p release use=%d", class_name(), this, use)); - use --; #ifdef DEBUG @@ -65,6 +63,4 @@ void ppdcShared::retain() { use ++; - - DEBUG_printf(("%s: %p retain use=%d", class_name(), this, use)); } |