utils: Some changes to module functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>