summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-memory.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2003-03-15 06:00:01 +0000
committerHavoc Pennington <hp@redhat.com>2003-03-15 06:00:01 +0000
commitf05f87a825ab8ed5273674a7f65521ffc526f0d2 (patch)
treea4645e057d269b6bc7d2d99e89ba7606625b3686 /dbus/dbus-memory.c
parent169238e99a4a163c89eb053250daeedf5f73e5cd (diff)
2003-03-15 Havoc Pennington <hp@pobox.com>
* bus/dispatch.c (bus_dispatch_test): OK, now finally actually write useful test code, after all that futzing around ;-) Test does not yet pass because we can't handle OOM in _dbus_transport_messages_pending (basically, dbus_connection_preallocate_send() does not prealloc the write watch). To fix this, I think we need to add new stuff to set_watch_functions, namely a SetEnabled function so we can alloc the watch earlier, then enable it later. * dbus/Makefile.am (libdbus_convenience_la_SOURCES): move dbus-memory.c to the convenience lib * bus/test.c: rename some static functions to keep them clearly distinct from stuff in connection.c. Handle client disconnection.
Diffstat (limited to 'dbus/dbus-memory.c')
-rw-r--r--dbus/dbus-memory.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/dbus-memory.c b/dbus/dbus-memory.c
index 83d17e6c..e1075228 100644
--- a/dbus/dbus-memory.c
+++ b/dbus/dbus-memory.c
@@ -256,6 +256,8 @@ dbus_malloc (size_t bytes)
{
if (fail_counts != -1)
_dbus_set_fail_alloc_counter (fail_counts);
+
+ _dbus_verbose (" FAILING malloc of %d bytes\n", bytes);
return NULL;
}
@@ -297,6 +299,8 @@ dbus_malloc0 (size_t bytes)
{
if (fail_counts != -1)
_dbus_set_fail_alloc_counter (fail_counts);
+
+ _dbus_verbose (" FAILING malloc0 of %d bytes\n", bytes);
return NULL;
}
@@ -340,6 +344,8 @@ dbus_realloc (void *memory,
{
if (fail_counts != -1)
_dbus_set_fail_alloc_counter (fail_counts);
+
+ _dbus_verbose (" FAILING realloc of %d bytes\n", bytes);
return NULL;
}