From c34082e0ac4bfd8d976e1f4e48d4881be928d87f Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 30 Jan 2024 19:02:37 +0000 Subject: [PATCH] logging: Remove *_ERRNO logging Signed-off-by: Michael Tremer --- src/libpakfire/dist.c | 2 +- src/libpakfire/packager.c | 2 +- src/libpakfire/problem.c | 2 +- src/libpakfire/transaction.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libpakfire/dist.c b/src/libpakfire/dist.c index aa6c51eda..eff633faf 100644 --- a/src/libpakfire/dist.c +++ b/src/libpakfire/dist.c @@ -425,7 +425,7 @@ static int pakfire_dist_add_files(struct pakfire* pakfire, // Find the package directory r = pakfire_dist_find_root(root, file); if (r) { - ERROR_ERRNO(pakfire, r, "Could not find package root directory: %m\n"); + ERROR(pakfire, "Could not find package root directory: %s\n", strerror(r)); return r; } diff --git a/src/libpakfire/packager.c b/src/libpakfire/packager.c index f74a97b3b..69ada5801 100644 --- a/src/libpakfire/packager.c +++ b/src/libpakfire/packager.c @@ -131,7 +131,7 @@ int pakfire_packager_create(struct pakfire_packager** packager, // Set build host r = pakfire_package_set_string(pkg, PAKFIRE_PKG_BUILD_HOST, hostname); if (r) { - ERROR_ERRNO(p->pakfire, r, "Could not set the hostname: %m\n"); + ERROR(p->pakfire, "Could not set the hostname: %s\n", strerror(r)); goto ERROR; } diff --git a/src/libpakfire/problem.c b/src/libpakfire/problem.c index 8fb63a933..e39202439 100644 --- a/src/libpakfire/problem.c +++ b/src/libpakfire/problem.c @@ -296,7 +296,7 @@ PAKFIRE_EXPORT struct pakfire_solution** pakfire_problem_get_solutions( return solutions; ERROR: - ERROR_ERRNO(problem->pakfire, r, "Could not import solutions: %m\n"); + CTX_ERROR(problem->ctx, "Could not import solutions: %s\n", strerror(r)); if (solutions) { for (struct pakfire_solution** s = solutions; *s; s++) diff --git a/src/libpakfire/transaction.c b/src/libpakfire/transaction.c index ee2794703..7d7415dfb 100644 --- a/src/libpakfire/transaction.c +++ b/src/libpakfire/transaction.c @@ -454,7 +454,7 @@ PAKFIRE_EXPORT struct pakfire_problem** pakfire_transaction_get_problems( return problems; ERROR: - ERROR_ERRNO(transaction->pakfire, r, "Could not import problems: %m\n"); + CTX_ERROR(transaction->ctx, "Could not import problems: %s\n", strerror(r)); if (problems) { for (struct pakfire_problem** p = problems; *p; p++) -- 2.47.2