1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-22 21:53:06 +03:00

Replace printf format %i by %d

They are identical, but the overwhelming majority of the code uses %d,
so standardize on that.
This commit is contained in:
Peter Eisentraut
2011-07-26 22:54:29 +03:00
parent 8c18f3f0e1
commit ce8d7bb644
8 changed files with 32 additions and 32 deletions

View File

@@ -319,14 +319,14 @@ winsock_strerror(int err, char *strerrbuf, size_t buflen)
}
if (!success)
sprintf(strerrbuf, libpq_gettext("Unknown socket error (0x%08X/%i)"), err, err);
sprintf(strerrbuf, libpq_gettext("Unknown socket error (0x%08X/%d)"), err, err);
else
{
strerrbuf[buflen - 1] = '\0';
offs = strlen(strerrbuf);
if (offs > (int) buflen - 64)
offs = buflen - 64;
sprintf(strerrbuf + offs, " (0x%08X/%i)", err, err);
sprintf(strerrbuf + offs, " (0x%08X/%d)", err, err);
}
return strerrbuf;
}