Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit eeec0a6

Browse files
committed
Fix elog in dbmirror to use %s.
Hai-Chen Tu
1 parent 1f79360 commit eeec0a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

contrib/dbmirror/pending.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/****************************************************************************
22
* pending.c
3-
* $Id: pending.c,v 1.7 2002/11/06 17:50:53 momjian Exp $
3+
* $Id: pending.c,v 1.8 2002/11/22 16:04:41 momjian Exp $
44
*
55
* This file contains a trigger for Postgresql-7.x to record changes to tables
66
* to a pending table for mirroring.
@@ -218,7 +218,7 @@ storePending(char *cpTableName, HeapTuple tBeforeTuple,
218218
}
219219

220220
#if defined DEBUG_OUTPUT
221-
elog(NOTICE, "DOne storing keyinfo");
221+
elog(NOTICE, "Done storing keyinfo");
222222
#endif
223223

224224
return iResult;
@@ -253,7 +253,7 @@ storeKeyInfo(char *cpTableName, HeapTuple tTupleData,
253253
return -1;
254254
}
255255
#if defined DEBUG_OUTPUT
256-
elog(NOTICE, cpKeyData);
256+
elog(NOTICE, "%s", cpKeyData);
257257
#endif
258258
saPlanData[0] = PointerGetDatum(cpKeyData);
259259

@@ -437,7 +437,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
437437
cpFieldName = DatumGetPointer(NameGetDatum(&tTupleDesc->attrs
438438
[iColumnCounter - 1]->attname));
439439
#if defined DEBUG_OUTPUT
440-
elog(NOTICE, cpFieldName);
440+
elog(NOTICE, "%s", cpFieldName);
441441
#endif
442442
while (iDataBlockSize - iUsedDataBlock < strlen(cpFieldName) + 6)
443443
{
@@ -465,7 +465,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
465465

466466
}
467467
#if defined DEBUG_OUTPUT
468-
elog(NOTICE, cpFieldData);
468+
elog(NOTICE, "%s", cpFieldData);
469469
elog(NOTICE, "Starting format loop");
470470
#endif
471471
while (*cpUnFormatedPtr != 0)
@@ -499,7 +499,7 @@ packageData(HeapTuple tTupleData, TupleDesc tTupleDesc,
499499
sprintf(cpFormatedPtr, "' ");
500500
iUsedDataBlock = iUsedDataBlock + 2;
501501
#if defined DEBUG_OUTPUT
502-
elog(NOTICE, cpDataBlock);
502+
elog(NOTICE, "%s", cpDataBlock);
503503
#endif
504504

505505
} /* for iColumnCounter */

0 commit comments

Comments
 (0)