mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-11 09:58:18 +00:00
errors: Fix format of some error messages
This commit is contained in:
parent
6c38e60a00
commit
8cf8052534
@ -445,7 +445,7 @@ int git_odb_get_backend(git_odb_backend **out, git_odb *odb, size_t pos)
|
||||
return 0;
|
||||
}
|
||||
|
||||
giterr_set(GITERR_ODB, "No ODB backend loaded at index " PRIuZ, pos);
|
||||
giterr_set(GITERR_ODB, "No ODB backend loaded at index %" PRIuZ, pos);
|
||||
return GIT_ENOTFOUND;
|
||||
}
|
||||
|
||||
|
@ -484,7 +484,7 @@ int git_reflog_drop(
|
||||
entry = (git_reflog_entry *)git_reflog_entry_byindex(reflog, idx);
|
||||
|
||||
if (entry == NULL) {
|
||||
giterr_set(GITERR_REFERENCE, "No reflog entry at index "PRIuZ, idx);
|
||||
giterr_set(GITERR_REFERENCE, "No reflog entry at index %"PRIuZ, idx);
|
||||
return GIT_ENOTFOUND;
|
||||
}
|
||||
|
||||
|
@ -217,7 +217,7 @@ static int retrieve_oid_from_reflog(git_oid *oid, git_reference *ref, size_t ide
|
||||
if (numentries < identifier + 1) {
|
||||
giterr_set(
|
||||
GITERR_REFERENCE,
|
||||
"Reflog for '%s' has only "PRIuZ" entries, asked for "PRIuZ,
|
||||
"Reflog for '%s' has only %"PRIuZ" entries, asked for %"PRIuZ,
|
||||
git_reference_name(ref), numentries, identifier);
|
||||
|
||||
error = GIT_ENOTFOUND;
|
||||
|
Loading…
Reference in New Issue
Block a user