Module: kamailio Branch: master Commit: d3b3e87a2d39992d1da291f552869f14375425de URL: https://github.com/kamailio/kamailio/commit/d3b3e87a2d39992d1da291f552869f14375425de
Author: Henning Westerholt <h...@kamailio.org> Committer: Henning Westerholt <h...@kamailio.org> Date: 2018-12-29T01:50:19+01:00 core: refactor PKG, SHM, and SYS* memory allocation error logging helper #defines - refactor PKG, SHM, and SYS* memory allocation error logging helper #defines - replace *_SZ and *_MSG by *_FTM #defines, which accept variable parameters - usage example: PKG_MEM_ERROR_FMT("for the record index %d\n", i); - output: "could not allocate private memory from pkg pool - for the record index 2" - because of the variable parameters you need to add a '\n' at the end --- Modified: src/core/mem/pkg.h Modified: src/core/mem/shm.h --- Diff: https://github.com/kamailio/kamailio/commit/d3b3e87a2d39992d1da291f552869f14375425de.diff Patch: https://github.com/kamailio/kamailio/commit/d3b3e87a2d39992d1da291f552869f14375425de.patch _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev