From 0d43a1bcf22b005ab7feec5373db766819aca92d Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 6 Feb 2024 21:55:10 +1000 Subject: [PATCH] PRVM: clarify tempstring messages Signed-off-by: bones_was_here --- prvm_edict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prvm_edict.c b/prvm_edict.c index c0b6865e..15528e46 100644 --- a/prvm_edict.c +++ b/prvm_edict.c @@ -3377,12 +3377,12 @@ int PRVM_SetTempString(prvm_prog_t *prog, const char *s, size_t slen) return 0; size = slen + 1; if (developer_insane.integer) - Con_DPrintf("PRVM_SetTempString %s: cursize %i, size %lu\n", prog->name, prog->tempstringsbuf.cursize, (unsigned long)size); + Con_DPrintf("PRVM_SetTempString %s: cursize %i, new tempstring size %lu\n", prog->name, prog->tempstringsbuf.cursize, (unsigned long)size); if ((size_t)prog->tempstringsbuf.maxsize < prog->tempstringsbuf.cursize + size) { sizebuf_t old = prog->tempstringsbuf; if (prog->tempstringsbuf.cursize + size >= 1<<28) - prog->error_cmd("PRVM_SetTempString %s: ran out of tempstring memory! (refusing to grow tempstring buffer over 256MB, cursize %i, size %lu)\n", prog->name, prog->tempstringsbuf.cursize, (unsigned long)size); + prog->error_cmd("PRVM_SetTempString %s: ran out of tempstring memory! (refusing to grow tempstring buffer over 256MB, cursize %i, new tempstring size %lu)\n", prog->name, prog->tempstringsbuf.cursize, (unsigned long)size); prog->tempstringsbuf.maxsize = max(prog->tempstringsbuf.maxsize, 65536); while ((size_t)prog->tempstringsbuf.maxsize < prog->tempstringsbuf.cursize + size) prog->tempstringsbuf.maxsize *= 2; -- 2.39.2