[Kamailio-Devel] unify memory allocation failure logging
Klaus Darilion
klaus.mailinglists at pernau.at
Tue Aug 26 13:57:56 CEST 2008
Henning Westerholt schrieb:
> 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..
What about using global variables which store the error string?
IMO it would be useful to unify the log messages to make it easier to
spot them in the logfiles.
regards
klaus
More information about the Devel
mailing list