st_perf: fix duplicate execution
st_perf: fix duplicate execution

If val is function then val will be called twice because val is
executed for log in printf. If function uses shared variables inside
then return value from it might be differed. So stored function value
to tmp_val and reuse it's value when print log.

jeongarmy/TizenRT,an4967/TizenRT,jeongarmy/TizenRT,pillip8282/TizenRT,jeongchanKim/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,an4967/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,junmin-kim/TizenRT,jeongarmy/TizenRT,an4967/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,pillip8282/TizenRT,Samsung/TizenRT,an4967/TizenRT,sunghan-chang/TizenRT,Samsung/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,jeongchanKim/TizenRT,Samsung/TizenRT,an4967/TizenRT,junmin-kim/TizenRT,pillip8282/TizenRT,Samsung/TizenRT,jeongchanKim/TizenRT,jeongarmy/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,pillip8282/TizenRT,sunghan-chang/TizenRT,jeongarmy/TizenRT,Samsung/TizenRT,an4967/TizenRT,pillip8282/TizenRT,junmin-kim/TizenRT,jeongchanKim/TizenRT,junmin-kim/TizenRT,junmin-kim/TizenRT,sunghan-chang/TizenRT