From: Pierangelo Masarati Date: Sat, 17 Dec 2005 00:41:17 +0000 (+0000) Subject: make the message one-line X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~560 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c75d26060b7a6b3507fa7a3a83efbad419d066d;p=openldap make the message one-line --- diff --git a/servers/slapd/back-sql/sql-wrap.c b/servers/slapd/back-sql/sql-wrap.c index 343b47e3aa..7176d0dc4b 100644 --- a/servers/slapd/back-sql/sql-wrap.c +++ b/servers/slapd/back-sql/sql-wrap.c @@ -48,12 +48,11 @@ backsql_PrintErrors( SQLHENV henv, SQLHDBC hdbc, SQLHSTMT sth, int rc ) Debug( LDAP_DEBUG_TRACE, "Return code: %d\n", rc, 0, 0 ); for ( ; rc = SQLError( henv, hdbc, sth, state, &iSqlCode, msg, - SQL_MAX_MESSAGE_LENGTH - 1, &len ), BACKSQL_SUCCESS( rc ); ) { + SQL_MAX_MESSAGE_LENGTH - 1, &len ), BACKSQL_SUCCESS( rc ); ) + { Debug( LDAP_DEBUG_TRACE, - " Native error code: %d\n" - " SQL engine state: %s\n" - " Message: %s\n", - (int)iSqlCode, state, msg ); + " nativeErrCode=%d SQLengineState=%s msg=\"%s\"\n", + (int)iSqlCode, state, msg ); } }