From 0c75d26060b7a6b3507fa7a3a83efbad419d066d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 17 Dec 2005 00:41:17 +0000 Subject: [PATCH] make the message one-line --- servers/slapd/back-sql/sql-wrap.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 ); } }