From: lordhavoc Date: Tue, 13 Feb 2001 22:07:14 +0000 (+0000) Subject: report name when Hunk_Alloc fails X-Git-Tag: RELEASE_0_2_0_RC1~871 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=15f74b0989186c26df4bbf0f2ea6c5b095e74269;p=xonotic%2Fdarkplaces.git report name when Hunk_Alloc fails git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@149 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/zone.c b/zone.c index 3549f700..a5bb4f0f 100644 --- 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;