report name when Hunk_Alloc fails
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Feb 2001 22:07:14 +0000 (22:07 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 13 Feb 2001 22:07:14 +0000 (22:07 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@149 d7cf8633-e32d-0410-b094-e92efae38249

zone.c

diff --git a/zone.c b/zone.c
index 3549f70..a5bb4f0 100644 (file)
--- a/zone.c
+++ b/zone.c
@@ -417,7 +417,7 @@ void *Hunk_AllocName (int size, char *name)
        size = sizeof(hunk_t) + ((size+15)&~15);
        
        if (hunk_size - hunk_low_used - hunk_high_used < size)
-               Sys_Error ("Hunk_Alloc: failed on %i bytes",size);
+               Sys_Error ("Hunk_Alloc: failed on %i bytes (name = %s)",size, name);
        
        h = (hunk_t *)(hunk_base + hunk_low_used);
        hunk_low_used += size;