fixed pv_printf to also print integer values