On Tue, May 25, 2010 at 2:11 AM, Michael Jerris <mike@jerris.com> wrote:
Mathieu, we have a define for the printf specifier for switch_size_t, because it is different on different os's:
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_NOTICE, "Session %" SWITCH_SIZE_T_FMT " (%s) Ended\n",
you can use it like that, or optionally, if appropriate, cast the value to the right type when passing it to printf style commands.
Thanks Mike. I thought I had already done this but can find where it went. I also need a function for big-endian platforms to convert native integer to little endian and the reverse. Those are simple to implement and I can do this, but I don't know where to put them (switch_utils.{h,c}?) and how to name them (switch_htol32, switch_ltoh32? or switch_native_to_little_endian, switch_to_little?...) ; or maybe they already exists? Patrick, his is solved on a2ceff1. Can you test again? For reference, this is MODSKINNY-5 on Jira. Mathieu