Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit 6eb95df

Browse files
William Douglasbryteise
authored andcommitted
Fixup format string specifiers
Correct format strings to be the right type. Signed-off-by: William Douglas <[email protected]>
1 parent 8b71dac commit 6eb95df

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/cmds/bundle_remove.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,9 @@ static void print_remove_summary(int requested, int bad, int total_removed)
318318
deps_removed = total_removed + bad - requested;
319319
if (deps_removed > 0) {
320320
if (cmdline_option_force) {
321-
info("%i bundle%s\n", deps_removed, deps_removed > 1 ? "s that depended on the specified bundle(s) were removed" : " that depended on the specified bundle(s) was removed");
321+
info("%ld bundle%s\n", deps_removed, deps_removed > 1 ? "s that depended on the specified bundle(s) were removed" : " that depended on the specified bundle(s) was removed");
322322
} else {
323-
info("%i bundle%s\n", deps_removed, deps_removed > 1 ? "s that were installed as a dependency were removed" : " that was installed as a dependency was removed");
323+
info("%ld bundle%s\n", deps_removed, deps_removed > 1 ? "s that were installed as a dependency were removed" : " that was installed as a dependency was removed");
324324
}
325325
}
326326
}

src/swupd_lib/version.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ static int get_sig_inmemory(char *url, struct curl_file_data *tmp_version_sig)
9999
string_or_die(&sig_fname, "%s.sig", url);
100100
file_size = swupd_curl_query_content_size(sig_fname);
101101
if (file_size <= 0) {
102-
debug("Failed to retrieve size for signature file: %s - assuming %d\n", sig_fname, default_sig_size);
102+
debug("Failed to retrieve size for signature file: %s - assuming %lu\n", sig_fname, default_sig_size);
103103
tmp_version_sig->capacity = default_sig_size;
104104
} else {
105105
tmp_version_sig->capacity = (size_t)file_size;

0 commit comments

Comments
 (0)