[nautilus-actions] Add a debug trace
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] Add a debug trace
- Date: Tue, 16 Mar 2010 21:36:35 +0000 (UTC)
commit a5c152db9f245764d5349b6a1b1ec0c5db31140c
Author: Pierre Wieser <pwieser trychlos org>
Date: Tue Mar 9 22:03:05 2010 +0100
Add a debug trace
ChangeLog | 3 +++
src/core/na-ifactory-provider.c | 4 ++++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c3924af..2fffa2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2009-03-09 Pierre Wieser <pwieser trychlos org>
+ * src/core/na-ifactory-provider.c (na_ifactory_provider_write_item):
+ Add a debug trace when entering in the function.
+
* src/api/na-icontext-conditions.h: Renamed as na-icontextual.h.
* src/core/na-icontext-conditions.c: Renamed as na-icontextual.c.
* src/core/na-icontext-conditions-factory.c:
diff --git a/src/core/na-ifactory-provider.c b/src/core/na-ifactory-provider.c
index d9ce801..a28e6a8 100644
--- a/src/core/na-ifactory-provider.c
+++ b/src/core/na-ifactory-provider.c
@@ -186,11 +186,15 @@ na_ifactory_provider_read_item( const NAIFactoryProvider *reader, void *reader_d
guint
na_ifactory_provider_write_item( const NAIFactoryProvider *writer, void *writer_data, NAIFactoryObject *object, GSList **messages )
{
+ static const gchar *thisfn = "na_ifactory_provider_write_item";
guint code;
g_return_val_if_fail( NA_IS_IFACTORY_PROVIDER( writer ), NA_IIO_PROVIDER_CODE_PROGRAM_ERROR );
g_return_val_if_fail( NA_IS_IFACTORY_OBJECT( object ), NA_IIO_PROVIDER_CODE_PROGRAM_ERROR );
+ g_debug( "%s: writer=%p, writer_data=%p, object=%p (%s)",
+ thisfn, ( void * ) writer, ( void * ) writer_data, ( void * ) object, G_OBJECT_TYPE_NAME( object ));
+
code = NA_IIO_PROVIDER_CODE_NOT_WILLING_TO_RUN;
if( ifactory_provider_initialized && !ifactory_provider_finalized ){
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]