[sr-dev] git:master:f17ac878: core: mem - qmalloc - cast size to unsigned long in debug messages

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 8 10:29:38 CEST 2016


Module: kamailio
Branch: master
Commit: f17ac878a555b9baad3954e0e8c6b390378bad5a
URL: https://github.com/kamailio/kamailio/commit/f17ac878a555b9baad3954e0e8c6b390378bad5a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-06-08T10:28:32+02:00

core: mem - qmalloc - cast size to unsigned long in debug messages

- better for compatibility with C sepcs older than C99
- newer specs allow %zu, but 'z' specifier is not in older
  specs, %lu being the safer approach

---

Modified: mem/q_malloc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f17ac878a555b9baad3954e0e8c6b390378bad5a.diff
Patch: https://github.com/kamailio/kamailio/commit/f17ac878a555b9baad3954e0e8c6b390378bad5a.patch




More information about the sr-dev mailing list