First, you need to make sure you want to let your boss in on that, and make sure you can't be fired.
If you work for a company with greater than 50 employees, you are probably safe. Then, ask boss when would be a good time to have a talk and schedule it. Finally, explain the best you can, what you have wrong with you and your plan to control it. The plan part is what your boss wants to know.