$OpenBSD: patch-os_os_rw_c,v 1.1 2004/01/14 19:50:15 sturm Exp $
--- os/os_rw.c.orig	2004-01-14 19:44:16.000000000 +0100
+++ os/os_rw.c	2004-01-14 19:45:13.000000000 +0100
@@ -120,8 +120,8 @@ retry:		if ((nr = DB_GLOBAL(j_read) != N
 			if ((ret == EINTR || ret == EBUSY) &&
 			    ++retries < DB_RETRY)
 				goto retry;
-			__db_err(dbenv, "read: 0x%x, %lu: %s",
-			    (u_int)taddr, (u_long)len-offset, strerror(ret));
+			__db_err(dbenv, "read: 0x%lx, %lu: %s",
+			    (u_long)taddr, (u_long)len-offset, strerror(ret));
 			return (ret);
 		}
 		if (nr == 0)
@@ -197,8 +197,8 @@ retry:		if ((nw = DB_GLOBAL(j_write) != 
 			if ((ret == EINTR || ret == EBUSY) &&
 			    ++retries < DB_RETRY)
 				goto retry;
-			__db_err(dbenv, "write: 0x%x, %lu: %s",
-			    (u_int)taddr, (u_long)len-offset, strerror(ret));
+			__db_err(dbenv, "write: 0x%lx, %lu: %s",
+			    (u_long)taddr, (u_long)len-offset, strerror(ret));
 			return (ret);
 		}
 	*nwp = len;
