utils: Some changes to module functions.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>
typo:/trhow/throw/  Seems it's the original source's typo.