Replace CLG_(sprint_eventmapping) with CLG_(mappingcost_as_string)
which returns the string in a dynamically allocated but local buffer.
Fix call sites.
Addded CLG_REALLOC and function convenience function "grow_buffer".


git-svn-id: svn://svn.valgrind.org/valgrind/branches/BUF_REMOVAL@14344 a5019735-40e9-0310-863c-91ae7b9d1cf9
Replace CLG_(sprint_eventmapping) with CLG_(eventmapping_as_string)
which returns the string in a dynamically allocated but local buffer.
Fix call sites.


git-svn-id: svn://svn.valgrind.org/valgrind/branches/BUF_REMOVAL@14345 a5019735-40e9-0310-863c-91ae7b9d1cf9
Eliminate buffer 'print_buf'. Change functions print_bbccs_of_thread
and new_dumpfile to use VG_(fdprintf).


git-svn-id: svn://svn.valgrind.org/valgrind/branches/BUF_REMOVAL@14346 a5019735-40e9-0310-863c-91ae7b9d1cf9
Change function print_obj to use VG_(fdprintf). The change is similar
to what was doen fr print_file -- pass in a prefix and file descriptor.


git-svn-id: svn://svn.valgrind.org/valgrind/branches/BUF_REMOVAL@14347 a5019735-40e9-0310-863c-91ae7b9d1cf9