$OpenBSD: patch-backend_canon-sane_c,v 1.1 2015/10/09 07:06:52 ajacoutot Exp $
--- backend/canon-sane.c.orig	Thu Oct  8 08:07:40 2015
+++ backend/canon-sane.c	Thu Oct  8 08:08:10 2015
@@ -858,10 +858,10 @@ sane_control_option (SANE_Handle handle, SANE_Int opti
 	  if (status == SANE_STATUS_GOOD)
 	    {
 	      time (&(s->time1));
-	      DBG (11, "time0 = %ld\n", s->time0);
-	      DBG (11, "time1 = %ld\n", s->time1);
+	      DBG (11, "time0 = %lld\n", s->time0);
+	      DBG (11, "time1 = %lld\n", s->time1);
 	      dtime = (s->time1) - (s->time0);
-	      DBG (11, "dtime = %ld\n", dtime);
+	      DBG (11, "dtime = %lld\n", dtime);
 
 	      DBG (11, "switch_preview = %d\n", s->switch_preview);
 	      if (s->switch_preview == 0)
@@ -875,7 +875,7 @@ sane_control_option (SANE_Handle handle, SANE_Int opti
 
 	      DBG (11, "SANE_UNFIX(s->val[OPT_BR_Y].w) = %f\n",
 		   SANE_UNFIX (s->val[OPT_BR_Y].w));
-	      DBG (11, "rt = %ld\n", rt);
+	      DBG (11, "rt = %lld\n", rt);
 
 	      if (dtime < rt)
 		{
