2323 * Portions Copyright (c) 1994, Regents of the University of California
2424 *
2525 * IDENTIFICATION
26- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.120 2005/09/24 17:53:28 tgl Exp $
26+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.121 2005/09/26 17:49:09 petere Exp $
2727 *
2828 *-------------------------------------------------------------------------
2929 */
@@ -85,7 +85,7 @@ pqGetc(char *result, PGconn *conn)
8585* result = conn -> inBuffer [conn -> inCursor ++ ];
8686
8787if (conn -> Pfdebug )
88- fprintf (conn -> Pfdebug ,libpq_gettext ( "From backend> %c\n" ) ,* result );
88+ fprintf (conn -> Pfdebug ,"From backend> %c\n" ,* result );
8989
9090return 0 ;
9191}
@@ -101,7 +101,7 @@ pqPutc(char c, PGconn *conn)
101101return EOF ;
102102
103103if (conn -> Pfdebug )
104- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend> %c\n" ) ,c );
104+ fprintf (conn -> Pfdebug ,"To backend> %c\n" ,c );
105105
106106return 0 ;
107107}
@@ -137,7 +137,7 @@ pqGets(PQExpBuffer buf, PGconn *conn)
137137conn -> inCursor = ++ inCursor ;
138138
139139if (conn -> Pfdebug )
140- fprintf (conn -> Pfdebug ,libpq_gettext ( "From backend> \"%s\"\n" ) ,
140+ fprintf (conn -> Pfdebug ,"From backend> \"%s\"\n" ,
141141buf -> data );
142142
143143return 0 ;
@@ -154,7 +154,7 @@ pqPuts(const char *s, PGconn *conn)
154154return EOF ;
155155
156156if (conn -> Pfdebug )
157- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend>'%s'\n" ) ,s );
157+ fprintf (conn -> Pfdebug ,"To backend>\"%s\"\n" ,s );
158158
159159return 0 ;
160160}
@@ -175,7 +175,7 @@ pqGetnchar(char *s, size_t len, PGconn *conn)
175175conn -> inCursor += len ;
176176
177177if (conn -> Pfdebug )
178- fprintf (conn -> Pfdebug ,libpq_gettext ( "From backend (%lu)> %.*s\n" ) ,
178+ fprintf (conn -> Pfdebug ,"From backend (%lu)> %.*s\n" ,
179179(unsigned long )len , (int )len ,s );
180180
181181return 0 ;
@@ -192,7 +192,7 @@ pqPutnchar(const char *s, size_t len, PGconn *conn)
192192return EOF ;
193193
194194if (conn -> Pfdebug )
195- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend> %.*s\n" ) , (int )len ,s );
195+ fprintf (conn -> Pfdebug ,"To backend> %.*s\n" , (int )len ,s );
196196
197197return 0 ;
198198}
@@ -232,7 +232,7 @@ pqGetInt(int *result, size_t bytes, PGconn *conn)
232232}
233233
234234if (conn -> Pfdebug )
235- fprintf (conn -> Pfdebug ,libpq_gettext ( "From backend (#%lu)> %d\n" ) , (unsigned long )bytes ,* result );
235+ fprintf (conn -> Pfdebug ,"From backend (#%lu)> %d\n" , (unsigned long )bytes ,* result );
236236
237237return 0 ;
238238}
@@ -268,7 +268,7 @@ pqPutInt(int value, size_t bytes, PGconn *conn)
268268}
269269
270270if (conn -> Pfdebug )
271- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend (%lu#)> %d\n" ) , (unsigned long )bytes ,value );
271+ fprintf (conn -> Pfdebug ,"To backend (%lu#)> %d\n" , (unsigned long )bytes ,value );
272272
273273return 0 ;
274274}
@@ -456,7 +456,7 @@ pqPutMsgStart(char msg_type, bool force_len, PGconn *conn)
456456/* length word, if needed, will be filled in by pqPutMsgEnd */
457457
458458if (conn -> Pfdebug )
459- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend> Msg %c\n" ) ,
459+ fprintf (conn -> Pfdebug ,"To backend> Msg %c\n" ,
460460msg_type ?msg_type :' ' );
461461
462462return 0 ;
494494pqPutMsgEnd (PGconn * conn )
495495{
496496if (conn -> Pfdebug )
497- fprintf (conn -> Pfdebug ,libpq_gettext ( "To backend> Msg complete, length %u\n" ) ,
497+ fprintf (conn -> Pfdebug ,"To backend> Msg complete, length %u\n" ,
498498conn -> outMsgEnd - conn -> outCount );
499499
500500/* Fill in length word if needed */