]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Make sure _cups_debug_set always exists.
authorMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 25 Oct 2018 18:18:36 +0000 (14:18 -0400)
committerMichael R Sweet <michael.r.sweet@gmail.com>
Thu, 25 Oct 2018 18:18:36 +0000 (14:18 -0400)
cups/debug.c

index b18953dab3b1e5b384db51b1c43560d249553d0c..6b3914ed5110b9600b2b7dee7ab3fc9ed03ad914 100644 (file)
@@ -314,6 +314,24 @@ _cups_debug_set(const char *logfile,       /* I - Log file or NULL */
 
   _cupsMutexUnlock(&debug_init_mutex);
 }
+
+
+#else
+/*
+ * '_cups_debug_set()' - Enable or disable debug logging.
+ */
+
+void
+_cups_debug_set(const char *logfile,   /* I - Log file or NULL */
+               const char *level,      /* I - Log level or NULL */
+               const char *filter,     /* I - Filter string or NULL */
+               int        force)       /* I - Force initialization */
+{
+  (void)logfile;
+  (void)level;
+  (void)filter;
+  (void)force;
+}
 #endif /* DEBUG */