diff --git a/pdf.c b/pdf.c
index 0fb055a5c037d5f0e86c5884c8339d228849f0a9..97b2bb0f10f9d97613479336e3f5212ab2c59ce0 100644
--- a/pdf.c
+++ b/pdf.c
@@ -4979,8 +4979,8 @@ parse_xrefs(const uint8_t *input, size_t sz, size_t *nxrefs)
 	// verify the offset recovered is bounded to be in the file
 	// XXX this check is already present below by virtue of h_seek()
 	if (offset > sz) {
-		log_message(5, "VIOLATION[5]: Invalid xref table offset = %ld. Valid range <0, %ld>\n",
-				offset, sz);
+		log_message(5, "VIOLATION[5]: startxref %zu (%#zx) out of bounds\n",
+				offset, offset);
 		goto end;
 	}