How do I report the bargain portion of ESPP?

I sold qualifying ESPP shares.   The 1099B shows cost basis after the 15% discount.  As I understand, the 15% needs to be reported as ordinary income but not very clear how.