diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-05-29 18:47:00 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-05-29 18:47:00 +0000 |
commit | e8a0db81efba36888b6e1dea4243710b3997d7fa (patch) | |
tree | 46ef047a69b55d450a31e141bd18b31f4d7cd73f /tests/testutils.c | |
parent | Convert to use new memory allocation APIs (diff) | |
download | libvirt-e8a0db81efba36888b6e1dea4243710b3997d7fa.tar.gz libvirt-e8a0db81efba36888b6e1dea4243710b3997d7fa.tar.bz2 libvirt-e8a0db81efba36888b6e1dea4243710b3997d7fa.zip |
Pass allocation number to callback
Diffstat (limited to 'tests/testutils.c')
-rw-r--r-- | tests/testutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils.c b/tests/testutils.c index da24093ee..6eea4981f 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -293,7 +293,7 @@ virtTestErrorFuncQuiet(void *data ATTRIBUTE_UNUSED, { } static void -virtTestErrorHook(void *data ATTRIBUTE_UNUSED) +virtTestErrorHook(int n, void *data ATTRIBUTE_UNUSED) { #if TEST_OOM_TRACE void *trace[30]; @@ -304,7 +304,7 @@ virtTestErrorHook(void *data ATTRIBUTE_UNUSED) ntrace = backtrace(trace, ntrace); symbols = backtrace_symbols(trace, ntrace); if (symbols) { - fprintf(stderr, "Failing an allocation at:\n"); + fprintf(stderr, "Failing allocation %d at:\n", n); for (i = 0 ; i < ntrace ; i++) { if (symbols[i]) fprintf(stderr, " TRACE: %s\n", symbols[i]); |