summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2013-09-11 20:13:59 +0200
committernulltoken <emeric.fermas@gmail.com>2013-09-11 20:13:59 +0200
commit8cf805253407e35627aa86f79b17070279106322 (patch)
tree837298dbb9239c7b02da71e2aba17ea0a2e7cd10 /src
parent6c38e60a00ad9133b98f6c6b4e73054226c1f88a (diff)
downloadlibgit2-8cf805253407e35627aa86f79b17070279106322.tar.gz
errors: Fix format of some error messages
Diffstat (limited to 'src')
-rw-r--r--src/odb.c2
-rw-r--r--src/reflog.c2
-rw-r--r--src/revparse.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/odb.c b/src/odb.c
index 2e6869547..a0bfec403 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -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;
}
diff --git a/src/reflog.c b/src/reflog.c
index 4cc20d2c7..a6752f618 100644
--- a/src/reflog.c
+++ b/src/reflog.c
@@ -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;
}
diff --git a/src/revparse.c b/src/revparse.c
index 3dde22ce1..e470a954d 100644
--- a/src/revparse.c
+++ b/src/revparse.c
@@ -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;