Navigation


Changeset 974:2091bf698fb1 in freeDiameter for extensions/app_acct/acct_db.c


Ignore:
Timestamp:
Mar 15, 2013, 2:14:35 AM (11 years ago)
Author:
Thomas Klausner <tk@giga.or.at>
Branch:
default
Phase:
public
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/app_acct/acct_db.c

    r871 r974  
    7979       
    8080        CHECK_PARAMS_DO( PQisthreadsafe() == 1, {
    81                 fd_log_debug("You PostGreSQL installation is not thread-safe!\n");
     81                fd_log_debug("You PostGreSQL installation is not thread-safe!");
    8282                return EINVAL;
    8383        } );                   
     
    8888        /* Check to see that the backend connection was successfully made */
    8989        if (PQstatus(conn) != CONNECTION_OK) {
    90                 fd_log_debug("Connection to database failed: %s\n", PQerrorMessage(conn));
     90                fd_log_debug("Connection to database failed: %s", PQerrorMessage(conn));
    9191                acct_db_free();
    9292                return EINVAL;
    9393        }
    9494        if (PQprotocolVersion(conn) < 3) {
    95                 fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements.\n");
     95                fd_log_debug("Database protocol version is too old, version 3 is required for prepared statements.");
    9696                acct_db_free();
    9797                return EINVAL;
     
    194194        ADD_EXTEND(");");
    195195       
    196         TRACE_DEBUG(FULL, "Preparing the following SQL statement:\n%s\n", sql);
     196        TRACE_DEBUG(FULL, "Preparing the following SQL statement: '%s'", sql);
    197197        res = PQprepare(conn, stmt, sql, emptyrecords.nball, NULL);
    198198        if (PQresultStatus(res) != PGRES_COMMAND_OK) {
Note: See TracChangeset for help on using the changeset viewer.