若方程x2-(m-2)x+(3m+1)=0的两根互为倒数,则m等于(  )