From the cstdio docs, `snprintf()` - returns the number
of characters that would have been written
if n had been sufficiently large, not counting the terminating null character.
If a formatted unique id gets longer than 128 bytes,
or if the same happens later to the sequence of the formatted paramters,
then the according lenth becomes larger than the `sizeof(...)`,
and then the `append_meta_chunk()` may overflow the given buffer.
Just track the length by the fact after the printing is completed.
Also improve code formatting a little bit.
Change-Id: Ia3082623c4e59bd83c04af4c93851f8778bd73d2
ilog(LOG_ERR,"slot %i is greater than the total number of slots available %i, setting to slot %i",media->media_rec_slot,call->media_rec_slots,media_rec_slots);
ilog(LOG_ERR,"slot %i is greater than the total number of slots available %i, setting to slot %i",