$OpenBSD: patch-cupsconnection_c,v 1.10 2011/07/16 06:59:07 ajacoutot Exp $
--- cupsconnection.c.orig	Tue May 24 12:22:04 2011
+++ cupsconnection.c	Sat Jul 16 08:53:22 2011
@@ -3600,7 +3600,7 @@ Connection_getPPD3 (Connection *self, PyObject *args, 
   PyTuple_SetItem (ret, 2, obj);
 
   debugprintf ("<- Connection_getPPD3() = (%d,%ld,%s)\n",
-	       status, modtime, fname);
+	       status, (long)modtime, fname);
   return ret;
 }
 #endif /* HAVE_CUPS_1_4 */
@@ -3660,8 +3660,7 @@ Connection_printTestPage (Connection *self, PyObject *
 	  break;
       }
     } else {
-      const char *const dirs[] = { "/usr/share/cups",
-				   "/usr/local/share/cups",
+      const char *const dirs[] = { "${LOCALBASE}/share/cups",
 				   NULL };
       int found = 0;
       int i;
