diff options
author | Timo Teräs <timo.teras@iki.fi> | 2020-10-05 18:52:51 +0300 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2020-10-09 16:09:19 +0300 |
commit | 354713d2f746c197eed6a1feb4c6af3420af6c15 (patch) | |
tree | f9dd51bbdde0f25f8e122832cf006076b8452d28 /src/app_adbdump.c | |
parent | 7a7eca86709fcf31dbb1acf8b82ff411828fb67b (diff) | |
download | apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.gz apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.bz2 apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.tar.xz apk-tools-354713d2f746c197eed6a1feb4c6af3420af6c15.zip |
rename apk_db_options to apk_ctx, rework logging
makes apk_verbosity non-global
fixes #10682
Diffstat (limited to 'src/app_adbdump.c')
-rw-r--r-- | src/app_adbdump.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app_adbdump.c b/src/app_adbdump.c index 6e42a55..75cf048 100644 --- a/src/app_adbdump.c +++ b/src/app_adbdump.c @@ -223,13 +223,14 @@ static int mmap_and_dump_adb(struct adb_trust *trust, int fd) static int adbdump_main(void *pctx, struct apk_database *db, struct apk_string_array *args) { + struct apk_out *out = &db->ctx->out; char **arg; int r; foreach_array_item(arg, args) { r = mmap_and_dump_adb(&db->trust, open(*arg, O_RDONLY)); if (r) { - apk_error("%s: %s", *arg, apk_error_str(r)); + apk_err(out, "%s: %s", *arg, apk_error_str(r)); return r; } } |