Tag: cws_src680_kaddrbook
User: ebischoff
Date: 05/09/01 12:39:14

Modified:
 /dba/connectivity/source/drivers/kab/
  KStatement.cxx

Log:
 Using OS_TRACE instead of printf

File Changes:

Directory: /dba/connectivity/source/drivers/kab/
================================================

File [changed]: KStatement.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/kab/KStatement.cxx?r1=1.1.2.3&r2=1.1.2.4
Delta lines:  +10 -6
--------------------
--- KStatement.cxx      1 Sep 2005 17:11:30 -0000       1.1.2.3
+++ KStatement.cxx      1 Sep 2005 19:39:11 -0000       1.1.2.4
@@ -2,9 +2,9 @@
  *
  *  $RCSfile: KStatement.cxx,v $
  *
- *  $Revision: 1.1.2.3 $
+ *  $Revision: 1.1.2.4 $
  *
- *  last change: $Author: ebischoff $ $Date: 2005/09/01 17:11:30 $
+ *  last change: $Author: ebischoff $ $Date: 2005/09/01 19:39:11 $
  *
  *  The Contents of this file are made available subject to the terms of
  *  either of the following licenses
@@ -83,6 +83,12 @@
 #include <connectivity/dbexception.hxx>
 #endif
 
+#if OSL_DEBUG_LEVEL > 0
+# define OUtoCStr( x ) ( ::rtl::OUStringToOString ( (x), 
RTL_TEXTENCODING_ASCII_US).getStr())
+#else /* OSL_DEBUG_LEVEL */
+# define OUtoCStr( x ) ("dummy")
+#endif /* OSL_DEBUG_LEVEL */
+
 using namespace connectivity::kab;
 using namespace com::sun::star::uno;
 using namespace com::sun::star::lang;
@@ -337,10 +343,8 @@
 {
        ::osl::MutexGuard aGuard( m_aMutex );
        checkDisposed(KabCommonStatement_BASE::rBHelper.bDisposed);
-printf("Request: ");
-const unsigned short *p = sql.getStr();
-while (*p) putchar(*p++);
-putchar('\n');
+
+OSL_TRACE("KDE Address book - SQL Request: %s", OUtoCStr(sql));
 
        KabResultSet* pResult = new KabResultSet(this);
        Reference< XResultSet > xRS = pResult;




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to