Skip to content

Commit f6e0130

Browse files
committed
Clean up a few fprintf(stderr)'s that should be elog's.
1 parent 82ddb66 commit f6e0130

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
lines changed

src/backend/access/transam/xlog.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.108 2002/10/07 17:04:30 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.109 2002/11/02 15:54:12 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1206,13 +1206,12 @@ XLogFlush(XLogRecPtr record)
12061206

12071207
if (XLOG_DEBUG)
12081208
{
1209-
elog(LOG, "XLogFlush%s%s: request %X/%X; write %X/%X; flush %X/%X\n",
1209+
elog(LOG, "XLogFlush%s%s: request %X/%X; write %X/%X; flush %X/%X",
12101210
(IsBootstrapProcessingMode()) ? "(bootstrap)" : "",
12111211
(InRedo) ? "(redo)" : "",
12121212
record.xlogid, record.xrecoff,
12131213
LogwrtResult.Write.xlogid, LogwrtResult.Write.xrecoff,
12141214
LogwrtResult.Flush.xlogid, LogwrtResult.Flush.xrecoff);
1215-
fflush(stderr);
12161215
}
12171216

12181217
/* Disabled during REDO */

src/backend/executor/nodeSort.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.36 2002/06/20 20:29:28 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.37 2002/11/02 15:54:13 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -186,7 +186,7 @@ ExecSort(Sort *node)
186186
* finally set the sorted flag to true
187187
*/
188188
sortstate->sort_Done = true;
189-
SO1_printf(stderr, "ExecSort: sorting done.\n");
189+
SO1_printf("ExecSort: %s\n", "sorting done");
190190
}
191191

192192
SO1_printf("ExecSort: %s\n",

src/backend/utils/init/findbe.c

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.30 2002/09/04 20:31:31 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.31 2002/11/02 15:54:13 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -174,8 +174,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
174174
elog(DEBUG1, "FindExec: found \"%s\" using argv[0]", full_path);
175175
return 0;
176176
}
177-
fprintf(stderr, "FindExec: invalid binary \"%s\"\n",
178-
buf);
177+
elog(LOG, "FindExec: invalid binary \"%s\"", buf);
179178
return -1;
180179
}
181180

@@ -213,8 +212,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
213212
case -1: /* wasn't even a candidate, keep looking */
214213
break;
215214
case -2: /* found but disqualified */
216-
fprintf(stderr, "FindExec: could not read binary \"%s\"\n",
217-
buf);
215+
elog(LOG, "FindExec: could not read binary \"%s\"", buf);
218216
free(path);
219217
return -1;
220218
}
@@ -224,6 +222,6 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
224222
free(path);
225223
}
226224

227-
fprintf(stderr, "FindExec: could not find a %s to execute...\n", binary_name);
225+
elog(LOG, "FindExec: could not find a %s to execute", binary_name);
228226
return -1;
229227
}

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