diff options
author | Giovanni Bechis <giovanni@paclan.it> | 2016-09-03 10:42:54 +0200 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2016-10-11 21:15:19 -0700 |
commit | a715a5e425056e1c7b6664294740e0b684b5ac9e (patch) | |
tree | 35824271477f1fdec8986ec305ca04063dea8472 /items.c | |
parent | 51d767aaa07f5aebfcc216ae5238d9a7b1a08603 (diff) | |
download | memcached-a715a5e425056e1c7b6664294740e0b684b5ac9e.tar.gz |
printf format string fix for long long time_t
Diffstat (limited to 'items.c')
-rw-r--r-- | items.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |