[Kamailio-Devel] unify memory allocation failure logging

Henning Westerholt henning.westerholt at 1und1.de
Tue Aug 26 13:04:17 CEST 2008


On Tuesday 26 August 2008, Henning Westerholt wrote:
> I thought about define them in mem/mem.h:
> void pkg_mem_error();
> void shm_mem_error();

The problem with this functions is, that we loose the informations where the 
error happened, with is currently logged by the e.g. LM_ERR. This could be 
mitigated in using macros, but then we have again this string duplication in 
the code, which is not nice, hm..

Henning



More information about the Devel mailing list