mpc: factorize print_stat_value()