What if only one room of principal residence was rented for the whole year?

If only one room of principal residence was rented for the whole year, what it is the tax treatment? how to devide the perosonal use and rental use? I am using Becker 2012, it did not mention this. thanks everyone.