diff --git a/m-core.h b/m-core.h index e6fae4d4..1d71b4b1 100644 --- a/m-core.h +++ b/m-core.h @@ -1063,8 +1063,8 @@ m_core_hash (const void *str, size_t length) #include #include #define M_MEMORY_FULL(size) do { \ - fprintf(stderr, "ERROR: Can not allocate memory (%lu bytes).\n", \ - (unsigned long) size); \ + fprintf(stderr, "ERROR(M*LIB): Can not allocate memory in function %s of file %s:%d (%lu bytes).\n", \ + __func__, __FILE__, __LINE__, (unsigned long) size); \ abort(); \ } while (0) #endif