]> granicus.if.org Git - postgresql/commitdiff
Fix elog in dbmirror to use %s.
authorBruce Momjian <bruce@momjian.us>
Fri, 22 Nov 2002 16:04:41 +0000 (16:04 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 22 Nov 2002 16:04:41 +0000 (16:04 +0000)
Hai-Chen Tu

contrib/dbmirror/pending.c

index 57369a41ef7c0bb49f4bb6d3908e35191edf1331..acf71082c5d334fa968b27ddabe478d4693e97af 100644 (file)
@@ -1,6 +1,6 @@
 /****************************************************************************
  * pending.c
- * $Id: pending.c,v 1.7 2002/11/06 17:50:53 momjian Exp $
+ * $Id: pending.c,v 1.8 2002/11/22 16:04:41 momjian Exp $
  *
  * This file contains a trigger for Postgresql-7.x to record changes to tables
  * to a pending table for mirroring.
@@ -218,7 +218,7 @@ storePending(char *cpTableName, HeapTuple tBeforeTuple,
        }
 
 #if defined DEBUG_OUTPUT
-       elog(NOTICE, "DOne storing keyinfo");
+       elog(NOTICE, "Done storing keyinfo");
 #endif
 
        return iResult;
@@ -253,7 +253,7 @@ storeKeyInfo(char *cpTableName, HeapTuple tTupleData,
                return -1;
        }
 #if defined DEBUG_OUTPUT
-       elog(NOTICE, cpKeyData);
+       elog(NOTICE, "%s", cpKeyData);
 #endif
        saPlanData[0] = PointerGetDatum(cpKeyData);
 
@@ -437,7 +437,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
                cpFieldName = DatumGetPointer(NameGetDatum(&tTupleDesc->attrs
                                                                                 [iColumnCounter - 1]->attname));
 #if defined DEBUG_OUTPUT
-               elog(NOTICE, cpFieldName);
+               elog(NOTICE, "%s", cpFieldName);
 #endif
                while (iDataBlockSize - iUsedDataBlock < strlen(cpFieldName) + 6)
                {
@@ -465,7 +465,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
 
                }
 #if defined DEBUG_OUTPUT
-               elog(NOTICE, cpFieldData);
+               elog(NOTICE, "%s", cpFieldData);
                elog(NOTICE, "Starting format loop");
 #endif
                while (*cpUnFormatedPtr != 0)
@@ -499,7 +499,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
                sprintf(cpFormatedPtr, "' ");
                iUsedDataBlock = iUsedDataBlock + 2;
 #if defined DEBUG_OUTPUT
-               elog(NOTICE, cpDataBlock);
+               elog(NOTICE, "%s", cpDataBlock);
 #endif
 
        }                                                       /* for iColumnCounter  */