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

_______________________________________________
Devel mailing list
[email protected]
http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel

Reply via email to