From: <svn...@op...> - 2009-10-22 20:22:29
|
Author: cdfrey Date: Thu Oct 22 22:22:11 2009 New Revision: 5887 URL: http://www.opensync.org/changeset/5887 Log: Added explanation message of why we're running out of memory Modified: trunk/opensync/common/opensync_memory.c Modified: trunk/opensync/common/opensync_memory.c ============================================================================== --- trunk/opensync/common/opensync_memory.c Thu Oct 22 17:20:12 2009 (r5886) +++ trunk/opensync/common/opensync_memory.c Thu Oct 22 22:22:11 2009 (r5887) @@ -35,7 +35,7 @@ #endif /*OPENSYNC_UNITTESTS*/ if (!result) { - osync_error_set(error, OSYNC_ERROR_GENERIC, "No memory left"); + osync_error_set(error, OSYNC_ERROR_GENERIC, "No memory left (tried to allocate %u bytes)", size); return NULL; } memset(result, 0, size); |