$OpenBSD: patch-cupsconnection_c,v 1.11 2011/10/06 06:00:02 ajacoutot Exp $
--- cupsconnection.c.orig	Mon Oct  3 18:13:58 2011
+++ cupsconnection.c	Thu Oct  6 07:56:10 2011
@@ -3606,7 +3606,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 */
@@ -3666,8 +3666,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;
