Merge pull request #159 from grissiom/misc-fix

kservice: export vsnprintf as rt_vsnprintf
logtrace: cleanup code and fix compiling warnings