[Kamailio-Devel] unify memory allocation failure logging

Henning Westerholt henning.westerholt at 1und1.de
Tue Aug 26 15:14:42 CEST 2008


On Tuesday 26 August 2008, Klaus Darilion wrote:
> > 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?

Hi Klaus,

good suggestion. Just create two static strings, and two small macros that 
uses them (for the log level). This should work as expected, i'll test.

Cheers,

Henning



More information about the Devel mailing list