From 70518b294096ef51525853477378690f92584b73 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Tue, 9 Aug 2016 15:49:17 +0200 Subject: Remove compilation warning regarding printf format in hexdump Signed-off-by: Szczepan Zalega --- misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'misc.cc') diff --git a/misc.cc b/misc.cc index 0f1be45..a31d9bc 100644 --- a/misc.cc +++ b/misc.cc @@ -12,7 +12,7 @@ std::string hexdump(const char *p, size_t size) { const char *pstart = p; for (const char *pend = p + size; p < pend;) { - snprintf(formatbuf, 128, "%04x\t", p - pstart); + snprintf(formatbuf, 128, "%04lx\t", p - pstart); out << formatbuf; for (const char *le = p + 16; p < le && p < pend; p++) { -- cgit v1.2.1