]> granicus.if.org Git - postgresql/commitdiff
Clean up a few fprintf(stderr)'s that should be elog's.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Nov 2002 15:54:13 +0000 (15:54 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 2 Nov 2002 15:54:13 +0000 (15:54 +0000)
src/backend/access/transam/xlog.c
src/backend/executor/nodeSort.c
src/backend/utils/init/findbe.c

index 6a3732c914b29477a78260bfb3c5957cf1d946ea..6152ab88c1bb8b7107b3f2fa358a5d103af37fb2 100644 (file)
@@ -7,7 +7,7 @@
  * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
  * 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)
        {
-               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)" : "",
                         (InRedo) ? "(redo)" : "",
                         record.xlogid, record.xrecoff,
                         LogwrtResult.Write.xlogid, LogwrtResult.Write.xrecoff,
                         LogwrtResult.Flush.xlogid, LogwrtResult.Flush.xrecoff);
-               fflush(stderr);
        }
 
        /* Disabled during REDO */
index 6ce648e2b24918d384f3962e30306e35c503e2db..e12baeb76a3782af00a39614dc27fabf523e90a5 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * 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
                 */
                sortstate->sort_Done = true;
-               SO1_printf(stderr, "ExecSort: sorting done.\n");
+               SO1_printf("ExecSort: %s\n", "sorting done");
        }
 
        SO1_printf("ExecSort: %s\n",
index 3c5e04055a50d41dba7e963a9765e8ea3975137f..ce5c521f3e094bac3cd8deb837269d203ee2f8e2 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * 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);
                        return 0;
                }
-               fprintf(stderr, "FindExec: invalid binary \"%s\"\n",
-                               buf);
+               elog(LOG, "FindExec: invalid binary \"%s\"", buf);
                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 */
                                        break;
                                case -2:                /* found but disqualified */
-                                       fprintf(stderr, "FindExec: could not read binary \"%s\"\n",
-                                                       buf);
+                                       elog(LOG, "FindExec: could not read binary \"%s\"", buf);
                                        free(path);
                                        return -1;
                        }
@@ -224,6 +222,6 @@ FindExec(char *full_path, const char *argv0, const char *binary_name)
                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;
 }