$OpenBSD: patch-items_c,v 1.5 2013/04/25 21:33:21 sthen Exp $
--- items.c.orig	Thu Apr 25 22:31:03 2013
+++ items.c	Thu Apr 25 22:31:47 2013
@@ -389,9 +389,9 @@ char *do_item_cachedump(const unsigned int slabs_clsid
         /* Copy the key since it may not be null-terminated in the struct */
         strncpy(key_temp, ITEM_key(it), it->nkey);
         key_temp[it->nkey] = 0x00; /* terminate */
-        len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n",
+        len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %llu s]\r\n",
                        key_temp, it->nbytes - 2,
-                       (unsigned long)it->exptime + process_started);
+                       (unsigned long long)it->exptime + process_started);
         if (bufcurr + len + 6 > memlimit)  /* 6 is END\r\n\0 */
             break;
         memcpy(buffer + bufcurr, temp, len);
