From ee702658cd006f889ecfd95c9eb8813e41290570 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Sat, 2 Sep 2023 21:05:03 -0700 Subject: [PATCH] use PRIu64 format specifiers for some uint64 identifiers in trace logging Signed-off-by: Ariadne Conill --- libpkgconf/libpkgconf.h | 1 + libpkgconf/pkg.c | 2 +- libpkgconf/queue.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libpkgconf/libpkgconf.h b/libpkgconf/libpkgconf.h index 220c235..fd6f2b8 100644 --- a/libpkgconf/libpkgconf.h +++ b/libpkgconf/libpkgconf.h @@ -16,6 +16,7 @@ #ifndef LIBPKGCONF__LIBPKGCONF_H #define LIBPKGCONF__LIBPKGCONF_H +#include #include #include #include diff --git a/libpkgconf/pkg.c b/libpkgconf/pkg.c index 2948bff..3e12b0d 100644 --- a/libpkgconf/pkg.c +++ b/libpkgconf/pkg.c @@ -1624,7 +1624,7 @@ pkgconf_pkg_traverse_main(pkgconf_client_t *client, if (maxdepth == 0) return eflags; - PKGCONF_TRACE(client, "%s: level %d, serial %lu", root->id, maxdepth, client->serial); + PKGCONF_TRACE(client, "%s: level %d, serial %"PRIu64, root->id, maxdepth, client->serial); if ((root->flags & PKGCONF_PKG_PROPF_VIRTUAL) != PKGCONF_PKG_PROPF_VIRTUAL || (client->flags & PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) != PKGCONF_PKG_PKGF_SKIP_ROOT_VIRTUAL) { diff --git a/libpkgconf/queue.c b/libpkgconf/queue.c index 4c2dd9f..c21f490 100644 --- a/libpkgconf/queue.c +++ b/libpkgconf/queue.c @@ -214,7 +214,7 @@ next: memset(&dep->iter, '\0', sizeof (dep->iter)); pkgconf_node_insert(&dep->iter, dep, list); - PKGCONF_TRACE(client, "slot "SIZE_FMT_SPECIFIER": dep %s matched to %p<%s> id "SIZE_FMT_SPECIFIER, i, dep->package, dep->match, dep->match->id, dep->match->identifier); + PKGCONF_TRACE(client, "slot "SIZE_FMT_SPECIFIER": dep %s matched to %p<%s> id %"PRIu64, i, dep->package, dep->match, dep->match->id, dep->match->identifier); } free(deps);