mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
Use consistent format for reporting GetLastError()
Use something like "error code %lu" for reporting GetLastError() values on Windows. Previously, a mix of different wordings and formats were in use.
This commit is contained in:
@@ -144,8 +144,8 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
|
||||
NULL);
|
||||
if (dumpFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
write_stderr("could not open crash dump file \"%s\" for writing: error code %u\n",
|
||||
dumpPath, (unsigned int) GetLastError());
|
||||
write_stderr("could not open crash dump file \"%s\" for writing: error code %lu\n",
|
||||
dumpPath, GetLastError());
|
||||
return EXCEPTION_CONTINUE_SEARCH;
|
||||
}
|
||||
|
||||
@@ -153,8 +153,8 @@ crashDumpHandler(struct _EXCEPTION_POINTERS * pExceptionInfo)
|
||||
NULL, NULL))
|
||||
write_stderr("wrote crash dump to file \"%s\"\n", dumpPath);
|
||||
else
|
||||
write_stderr("could not write crash dump to file \"%s\": error code %08x\n",
|
||||
dumpPath, (unsigned int) GetLastError());
|
||||
write_stderr("could not write crash dump to file \"%s\": error code %lu\n",
|
||||
dumpPath, GetLastError());
|
||||
|
||||
CloseHandle(dumpFile);
|
||||
}
|
||||
|
Reference in New Issue
Block a user