$OpenBSD: patch-items_c,v 1.9 2015/02/19 08:01:59 giovanni Exp $

printf format string fix for long long time_t

--- items.c.orig	Mon Oct 13 05:33:10 2014
+++ items.c	Fri Oct 31 14:56:50 2014
@@ -440,9 +440,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);
