add printf func, add mmtest cmd in shell