$OpenBSD: patch-items_c,v 1.11 2016/03/09 14:50:11 giovanni Exp $

printf format string fix for long long time_t

--- items.c.orig	Fri Nov 20 02:18:56 2015
+++ items.c	Sat Mar  5 22:20:56 2016
@@ -460,9 +460,9 @@ char *item_cachedump(const unsigned int slabs_clsid, c
         /* 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);
