summaryrefslogtreecommitdiff
path: root/src/package.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2021-07-26 10:25:23 +0300
committerTimo Teräs <timo.teras@iki.fi>2021-07-26 10:32:05 +0300
commit0eac0ed5f5575e4e115cc6a002b05e59d7f98f55 (patch)
tree98dd4462056b357d5aeae1b81010866f0dbe30df /src/package.c
parent9e54fcf4be0d62e13e5a6fed481a1c08cd59c871 (diff)
downloadapk-tools-0eac0ed5f5575e4e115cc6a002b05e59d7f98f55.tar.gz
apk-tools-0eac0ed5f5575e4e115cc6a002b05e59d7f98f55.tar.bz2
apk-tools-0eac0ed5f5575e4e115cc6a002b05e59d7f98f55.tar.xz
apk-tools-0eac0ed5f5575e4e115cc6a002b05e59d7f98f55.zip
Use __attribute__ ((format)) where possible and fix issues found by it
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/package.c b/src/package.c
index 6e7a062..c068b8d 100644
--- a/src/package.c
+++ b/src/package.c
@@ -907,8 +907,8 @@ static int read_info_entry(void *ctx, const struct apk_file_info *ae,
while (!APK_BLOB_IS_NULL(l = apk_istream_get_delim(is, token)))
read_info_line(ctx, l);
} else if (strcmp(ae->name, ".INSTALL") == 0) {
- apk_warning("Package '%s-%s' contains deprecated .INSTALL",
- pkg->name->name, pkg->version);
+ apk_warning("Package '%s-" BLOB_FMT "' contains deprecated .INSTALL",
+ pkg->name->name, BLOB_PRINTF(*pkg->version));
}
return 0;