I tried to fix "if (hashSection->hasho_flag & LH_UNUSED_PAGE)" condition. As LH_UNUSED_PAGE is 0 this condition is always false. As I understand hash index page is unused when it's none of the other types. I only changed this line, but may be we should consider switch case block on hash index page types for any page should only be one of the types.
I also noticed some new index pages flags that are missed and not being printed. Added them