Remove print_pid conf. Make default print_fun print pid and regname.
remove some dead code