From: Patrick Steinhardt Date: Tue, 21 May 2019 11:41:15 +0000 (+0200) Subject: zzip: memdisk: fix wrong formatter X-Git-Tag: v0.13.70~2^2~11^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e674a53f76fc23018257b8d2637f73e57a8f78af;p=zziplib zzip: memdisk: fix wrong formatter In `zzip_mem_disk_fdopen`, there's two debug calls with format strings that print out the file descriptor that we're about to open. While the first format string correctly uses "%i" to print the integer, the second one accidentally uses "%s". Fix this by using "%i" for both. --- diff --git a/zzip/memdisk.c b/zzip/memdisk.c index 7c59602..9983cc2 100644 --- a/zzip/memdisk.c +++ b/zzip/memdisk.c @@ -114,7 +114,7 @@ zzip_mem_disk_fdopen(int fd) ___ ZZIP_MEM_DISK *dir = zzip_mem_disk_new(); if (zzip_mem_disk_load(dir, disk) == -1) { - debug2("unable to load disk fd %s", fd); + debug2("unable to load disk fd %i", fd); } return dir; ____;