[Kamailio-Devel] unify memory allocation failure logging
Henning Westerholt
henning.westerholt at 1und1.de
Tue Aug 26 17:07:21 CEST 2008
On Tuesday 26 August 2008, Henning Westerholt wrote:
> > 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.
Hi Klaus,
the LM_ERR macro don't like this pre-defined string, but with the message in
the macro it works just fine. The linker is intelligent enough to not
duplicate this text anyway.
Cheers,
Henning
More information about the Devel
mailing list