Skip to content

Commit 0e3d5ad

Browse files
committed
Reduce chatter from _dosmaperr() when used in FRONTEND code.
ITAGAKI Takahiro
1 parent bcf188a commit 0e3d5ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/port/win32error.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/port/win32error.c,v 1.4 2008/01/01 19:46:00 momjian Exp $
9+
* $PostgreSQL: pgsql/src/port/win32error.c,v 1.5 2008/10/16 13:27:34 tgl Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -180,7 +180,7 @@ _dosmaperr(unsigned long e)
180180
ereport(DEBUG5,
181181
(errmsg_internal("mapped win32 error code %lu to %d",
182182
e, errno)));
183-
#else
183+
#elif FRONTEND_DEBUG
184184
fprintf(stderr, _("mapped win32 error code %lu to %d"), e, errno);
185185
#endif
186186
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy