From e674a53f76fc23018257b8d2637f73e57a8f78af Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Tue, 21 May 2019 13:41:15 +0200 Subject: [PATCH] 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. --- zzip/memdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; ____; -- 2.40.0