学习snprintf用法

Signed-off-by: lg <ligang@lg-desktop.(none)>