diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2022-05-23 15:48:38 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2022-05-23 15:50:24 +0100 |
commit | ee8d56f9f308c79ab49c41afb2031a6a31bcf272 (patch) | |
tree | df8b3d184ec9fc3fab8fcbe2d7f3589c06993b80 | |
parent | c065180cc7302a6d0ef7db9272ead690a3f97c01 (diff) |
Logging: distinguish mem-allocation errors
-rw-r--r-- | src/src/store.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/src/store.c b/src/src/store.c index 5ec636bd1..c98fcbf21 100644 --- a/src/src/store.c +++ b/src/src/store.c @@ -380,7 +380,7 @@ allocated store. */ if (size < 0 || size >= INT_MAX/2) log_write(0, LOG_MAIN|LOG_PANIC_DIE, - "bad memory allocation requested (%d bytes) at %s %d", + "bad memory allocation requested (%d bytes) from %s %d", size, func, linenumber); /* Round up the size to a multiple of the alignment. Although this looks a @@ -1150,8 +1150,8 @@ a negative int, to the (unsigned, wider) size_t */ if (size >= INT_MAX/2) log_write(0, LOG_MAIN|LOG_PANIC_DIE, - "bad memory allocation requested (" SIZE_T_FMT " bytes) at %s %d", - size, func, line); + "bad internal_store_malloc request (" SIZE_T_FMT " bytes) from %s %d", + size, func, line); size += sizeof(size_t); /* space to store the size, used under debug */ if (size < 16) size = 16; |