Reduce bss usage and speed up string printing
Reduce bss usage and speed up string printing

   text	   data	    bss	    dec	    hex	filename
 237913	    660	  49284	 287857	  46471	strace.before
 237973	    660	  28772	 267405	  4148d	strace

This reduces L1 D-cache pressure a bit: instead of dirtying
20k of bss, we will reuse already dirty stack area.

* util.c (printpathn): Use on-stack buffers instead of static ones.
Saves 5*MAXPATHLEN in bss.
(printstr): Use tprints() instead of tprintf("%s") when printing
formatted string. May be a bit faster, depending on libc.

Signed-off-by: Denys Vlasenko <50fbbd36fe0f9c8261d4a3c762c8c29ffb35e48f@redhat.com>

MonkeyZZZZ/platform_external_strace,lkundrak/strace,Infinitive-OS/platform_external_strace,lkundrak/strace,AOSP-YU/platform_external_strace,AOSP-YU/platform_external_strace,pgbovine/strace-plus,bigzz/strace_android,lizh06/strace-plus,AOSP-YU/platform_external_strace,geekboxzone/mmallow_external_strace,CyanogenMod/android_external_strace,Andrey9kin/revisor,TeamExodus/external_strace,Infinitive-OS/platform_external_strace,vrastogi/strace,geekboxzone/lollipop_external_strace,bigzz/strace_android,Infinitive-OS/platform_external_strace,jamel/strace-plus,Yu-AndroidM/android_external_strace,Andrey9kin/revisor,YUPlayGodDev/platform_external_strace,Yu-AndroidM/android_external_strace,pgbovine/strace-plus,DirtyUnicorns/android_external_strace,MonkeyZZZZ/platform_external_strace,xin3liang/platform_external_strace,vrastogi/strace,Yu-AndroidM/android_external_strace,Saruta/strace,android-ia/platform_external_strace,geofft/strace,geekboxzone/lollipop_external_strace,kapdop/android_external_strace,CyanogenMod/android_external_strace,TeamExodus/external_strace,lizh06/strace-plus,pgbovine/strace-plus,jamel/strace-plus,bnoordhuis/strace,Distrotech/strace,AOSP-YU/platform_external_strace,Infinitive-OS/platform_external_strace,jamel/strace-plus,lizh06/strace-plus,MonkeyZZZZ/platform_external_strace,kapdop/android_external_strace,jamel/strace-plus,Andrey9kin/revisor,pombredanne/strace,geekboxzone/mmallow_external_strace,geofft/strace,gcode-mirror/strace-plus,Saruta/strace,Infinitive-OS/platform_external_strace,gcode-mirror/strace-plus,Saruta/strace,Yu-AndroidM/android_external_strace,pgbovine/strace-plus,pombredanne/strace,kapdop/android_external_strace,Saruta/strace,Distrotech/strace,xin3liang/platform_external_strace,android-ia/platform_external_strace,android-ia/platform_external_strace,vrastogi/strace,cuviper/strace,bigzz/strace_android,jamel/strace-plus,lkundrak/strace,geekboxzone/mmallow_external_strace,geekboxzone/lollipop_external_strace,CyanogenMod/android_external_strace,xin3liang/platform_external_strace,DirtyUnicorns/android_external_strace,pgbovine/strace-plus,pombredanne/strace,geofft/strace,bnoordhuis/strace,geofft/strace,kapdop/android_external_strace,DirtyUnicorns/android_external_strace,lkundrak/strace,cuviper/strace,Andrey9kin/revisor,cuviper/strace,android-ia/platform_external_strace,YUPlayGodDev/platform_external_strace,pombredanne/strace,CyanogenMod/android_external_strace,vrastogi/strace,geekboxzone/lollipop_external_strace,TeamExodus/external_strace,xin3liang/platform_external_strace,YUPlayGodDev/platform_external_strace,Distrotech/strace,TeamExodus/external_strace,geofft/strace,AOSP-YU/platform_external_strace,Yu-AndroidM/android_external_strace,Saruta/strace,cuviper/strace,bnoordhuis/strace,lizh06/strace-plus,cuviper/strace,bnoordhuis/strace,kapdop/android_external_strace,DirtyUnicorns/android_external_strace,CyanogenMod/android_external_strace,TeamExodus/external_strace,Distrotech/strace,geekboxzone/lollipop_external_strace,DirtyUnicorns/android_external_strace,MonkeyZZZZ/platform_external_strace,geekboxzone/mmallow_external_strace,YUPlayGodDev/platform_external_strace,geekboxzone/mmallow_external_strace,gcode-mirror/strace-plus,MonkeyZZZZ/platform_external_strace,gcode-mirror/strace-plus,lizh06/strace-plus,Distrotech/strace,YUPlayGodDev/platform_external_strace,bigzz/strace_android,android-ia/platform_external_strace,bigzz/strace_android,gcode-mirror/strace-plus,vrastogi/strace