summaryrefslogtreecommitdiff
path: root/src/timezone/pgtz.c
diff options
context:
space:
mode:
authorPeter Eisentraut2011-08-23 19:00:52 +0000
committerPeter Eisentraut2011-08-23 19:00:52 +0000
commit1af55e2751cdf3bf3bf25993c34be1fa9ad1e342 (patch)
tree2ba411836fc1e8a4a5d8a4e0ef7723e76ad6daa9 /src/timezone/pgtz.c
parent6c6a4153338c2b2e33203bfb02a26ff8e3d2abd4 (diff)
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.
Diffstat (limited to 'src/timezone/pgtz.c')
-rw-r--r--src/timezone/pgtz.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timezone/pgtz.c b/src/timezone/pgtz.c
index dfd7ee1ebb4..254ddb8ad63 100644
--- a/src/timezone/pgtz.c
+++ b/src/timezone/pgtz.c
@@ -1114,8 +1114,8 @@ identify_system_timezone(void)
&rootKey) != ERROR_SUCCESS)
{
ereport(LOG,
- (errmsg("could not open registry key to identify system time zone: %d",
- (int) GetLastError()),
+ (errmsg("could not open registry key to identify system time zone: error code %lu",
+ GetLastError()),
errdetail("The PostgreSQL time zone will be set to \"%s\".",
"GMT"),
errhint("You can specify the correct timezone in postgresql.conf.")));