Skip to content

Commit

Permalink
use SIZE_FMT_SPECIFIER everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniini committed Jan 21, 2023
1 parent e2a12fd commit 99bc93f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libpkgconf/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ cache_dump(const pkgconf_client_t *client)
{
const pkgconf_pkg_t *pkg = client->cache_table[i];

PKGCONF_TRACE(client, "%zu: %p(%s)",
PKGCONF_TRACE(client, SIZE_FMT_SPECIFIER": %p(%s)",
i, pkg, pkg == NULL ? "NULL" : pkg->id);
}
}
Expand Down
4 changes: 2 additions & 2 deletions libpkgconf/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)

if (!strcmp(dep->package, other_dep->package))
{
PKGCONF_TRACE(client, "skipping, %zu deps", dep_count);
PKGCONF_TRACE(client, "skipping, "SIZE_FMT_SPECIFIER" deps", dep_count);
goto next;
}
}
Expand Down Expand Up @@ -219,7 +219,7 @@ flatten_dependency_set(pkgconf_client_t *client, pkgconf_list_t *list)
memset(&dep->iter, '\0', sizeof (dep->iter));
pkgconf_node_insert(&dep->iter, dep, list);

PKGCONF_TRACE(client, "slot %zu: dep %s matched to %p<%s> hits %lu", i, dep->package, dep->match, dep->match->id, dep->match->hits);
PKGCONF_TRACE(client, "slot "SIZE_FMT_SPECIFIER": dep %s matched to %p<%s> hits "SIZE_FMT_SPECIFIER, i, dep->package, dep->match, dep->match->id, dep->match->hits);
}

free(deps);
Expand Down

0 comments on commit 99bc93f

Please sign in to comment.