Reduce chatter from _dosmaperr() when used in FRONTEND code.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Oct 2008 13:27:34 +0000 (13:27 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Oct 2008 13:27:34 +0000 (13:27 +0000)
ITAGAKI Takahiro

src/port/win32error.c

index 568c2f50c60ff6fd09d6f7b192ef2351473770e4..113327786622646c59e36ed2b28443c3de3c4a91 100644 (file)
@@ -180,7 +180,7 @@ _dosmaperr(unsigned long e)
                        ereport(DEBUG5,
                                        (errmsg_internal("mapped win32 error code %lu to %d",
                                                                         e, errno)));
-#else
+#elif FRONTEND_DEBUG
                        fprintf(stderr, _("mapped win32 error code %lu to %d"), e, errno);
 #endif
                        return;