summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-15 10:52:00 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-15 10:52:00 +0100
commit5a4fd441d23f96ca618e55d4e54471d2e0fa94af (patch)
tree7529f44ef54b5f69028738882ae7b0dc838bd239
parent8bb8a921d40553602f8d72f0f3841f8f9aae9ff6 (diff)
downloadhivex-5a4fd441d23f96ca618e55d4e54471d2e0fa94af.tar.gz
hivex-5a4fd441d23f96ca618e55d4e54471d2e0fa94af.tar.xz
hivex-5a4fd441d23f96ca618e55d4e54471d2e0fa94af.zip
Fix incorrect printf format specifier in error string.
-rw-r--r--lib/hivex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hivex.c b/lib/hivex.c
index dceea73..a3f5171 100644
--- a/lib/hivex.c
+++ b/lib/hivex.c
@@ -621,7 +621,8 @@ timestamp_check (hive_h *h, hive_node_h node, int64_t timestamp)
if (timestamp < 0) {
if (h->msglvl >= 2)
fprintf (stderr, "hivex: timestamp_check: "
- "negative time reported at %z: %" PRIi64 "\n", node, timestamp);
+ "negative time reported at %zu: %" PRIi64 "\n",
+ node, timestamp);
errno = EINVAL;
return -1;
}