# HG changeset patch # User Anton Shestakov # Date 1652809776 -14400 # Node ID 675594a0a71aca072295bbe6b9d816c80df57d0e # Parent 8960d8eb747b0a7b057d7f0b02073fae6d14b67c revlog: use %d to format int instead of %lu (issue6565) The issue says gcc warns that the data types don't match. I couldn't reproduce the warning locally for some reason, but this patch shouldn't break things. Maybe %lu was simply a copy-paste error from 6b1eae313b2f (https://phab.mercurial-scm.org/D10625). diff -r 8960d8eb747b -r 675594a0a71a mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c Tue Apr 06 03:24:26 2021 +0200 +++ b/mercurial/cext/revlog.c Tue May 17 21:49:36 2022 +0400 @@ -497,7 +497,7 @@ if (self->format_version != format_v1) { PyErr_Format(PyExc_RuntimeError, "version header should go in the docket, not the " - "index: %lu", + "index: %d", header); return NULL; }