Generalized uncertainty principle and black hole entropy