Clean up a few fprintf(stderr)'s that should be elog's.

This commit is contained in:
Tom Lane 2002-11-02 15:54:13 +00:00
parent 82ddb66464
commit f6e0130b5b
3 changed files with 8 additions and 11 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.108 2002/10/07 17:04:30 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/access/transam/xlog.c,v 1.109 2002/11/02 15:54:12 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -1206,13 +1206,12 @@ XLogFlush(XLogRecPtr record)
if (XLOG_DEBUG) if (XLOG_DEBUG)
{ {
elog(LOG, "XLogFlush%s%s: request %X/%X; write %X/%X; flush %X/%X\n", elog(LOG, "XLogFlush%s%s: request %X/%X; write %X/%X; flush %X/%X",
(IsBootstrapProcessingMode()) ? "(bootstrap)" : "", (IsBootstrapProcessingMode()) ? "(bootstrap)" : "",
(InRedo) ? "(redo)" : "", (InRedo) ? "(redo)" : "",
record.xlogid, record.xrecoff, record.xlogid, record.xrecoff,
LogwrtResult.Write.xlogid, LogwrtResult.Write.xrecoff, LogwrtResult.Write.xlogid, LogwrtResult.Write.xrecoff,
LogwrtResult.Flush.xlogid, LogwrtResult.Flush.xrecoff); LogwrtResult.Flush.xlogid, LogwrtResult.Flush.xrecoff);
fflush(stderr);
} }
/* Disabled during REDO */ /* Disabled during REDO */

View File

@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.36 2002/06/20 20:29:28 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/executor/nodeSort.c,v 1.37 2002/11/02 15:54:13 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -186,7 +186,7 @@ ExecSort(Sort *node)
* finally set the sorted flag to true * finally set the sorted flag to true
*/ */
sortstate->sort_Done = true; sortstate->sort_Done = true;
SO1_printf(stderr, "ExecSort: sorting done.\n"); SO1_printf("ExecSort: %s\n", "sorting done");
} }
SO1_printf("ExecSort: %s\n", SO1_printf("ExecSort: %s\n",

View File

@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.30 2002/09/04 20:31:31 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/init/Attic/findbe.c,v 1.31 2002/11/02 15:54:13 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -174,8 +174,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
elog(DEBUG1, "FindExec: found \"%s\" using argv[0]", full_path); elog(DEBUG1, "FindExec: found \"%s\" using argv[0]", full_path);
return 0; return 0;
} }
fprintf(stderr, "FindExec: invalid binary \"%s\"\n", elog(LOG, "FindExec: invalid binary \"%s\"", buf);
buf);
return -1; return -1;
} }
@ -213,8 +212,7 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
case -1: /* wasn't even a candidate, keep looking */ case -1: /* wasn't even a candidate, keep looking */
break; break;
case -2: /* found but disqualified */ case -2: /* found but disqualified */
fprintf(stderr, "FindExec: could not read binary \"%s\"\n", elog(LOG, "FindExec: could not read binary \"%s\"", buf);
buf);
free(path); free(path);
return -1; return -1;
} }
@ -224,6 +222,6 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
free(path); free(path);
} }
fprintf(stderr, "FindExec: could not find a %s to execute...\n", binary_name); elog(LOG, "FindExec: could not find a %s to execute", binary_name);
return -1; return -1;
} }