summaryrefslogtreecommitdiff
path: root/items.c
diff options
context:
space:
mode:
authorGiovanni Bechis <giovanni@paclan.it>2016-09-03 10:42:54 +0200
committerdormando <dormando@rydia.net>2016-10-11 21:15:19 -0700
commita715a5e425056e1c7b6664294740e0b684b5ac9e (patch)
tree35824271477f1fdec8986ec305ca04063dea8472 /items.c
parent51d767aaa07f5aebfcc216ae5238d9a7b1a08603 (diff)
downloadmemcached-a715a5e425056e1c7b6664294740e0b684b5ac9e.tar.gz
printf format string fix for long long time_t
Diffstat (limited to 'items.c')
-rw-r--r--items.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/items.c b/items.c
index 84977cb..3bd7e5d 100644
--- a/items.c
+++ b/items.c
@@ -484,10 +484,10 @@ char *item_cachedump(const unsigned int slabs_clsid, const unsigned int limit, u
/* 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,
it->exptime == 0 ? 0 :
- (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);