Mercurial > hg > freeDiameter
diff extensions/app_acct/acct_db.c @ 974:2091bf698fb1
Remove newlines from fd_log_debug, TRACE_DEBUG, TRACE_ERROR, and TRACE_DEBUG_ERROR
(as far as sed could find them)
with manual fixing afterwards.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Thu, 14 Mar 2013 18:14:35 +0100 |
parents | 254d81d21d0b |
children | 1af09cc156d6 |
line wrap: on
line diff
--- a/extensions/app_acct/acct_db.c Thu Mar 14 17:31:16 2013 +0100 +++ b/extensions/app_acct/acct_db.c Thu Mar 14 18:14:35 2013 +0100 @@ -78,7 +78,7 @@ CHECK_PARAMS( acct_config && acct_config->conninfo && acct_config->tablename ); CHECK_PARAMS_DO( PQisthreadsafe() == 1, { - fd_log_debug("You PostGreSQL installation is not thread-safe!\n"); + fd_log_debug("You PostGreSQL installation is not thread-safe!"); return EINVAL; } ); @@ -87,12 +87,12 @@ /* Check to see that the backend connection was successfully made */ if (PQstatus(conn) != CONNECTION_OK) { - fd_log_debug("Connection to database failed: %s\n", PQerrorMessage(conn)); + fd_log_debug("Connection to database failed: %s", PQerrorMessage(conn)); acct_db_free(); return EINVAL; } if (PQprotocolVersion(conn) < 3) { - fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements.\n"); + fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements."); acct_db_free(); return EINVAL; } @@ -193,7 +193,7 @@ ADD_EXTEND(");"); - TRACE_DEBUG(FULL, "Preparing the following SQL statement:\n%s\n", sql); + TRACE_DEBUG(FULL, "Preparing the following SQL statement: '%s'", sql); res = PQprepare(conn, stmt, sql, emptyrecords.nball, NULL); if (PQresultStatus(res) != PGRES_COMMAND_OK) { TRACE_DEBUG(INFO, "Preparing statement '%s' failed: %s",