This debugging code printing routing table data was introduced in rS25723, 22+ years ago. The last functional commit to this code was rS67534, 19 years ago.
This code directly iterates radix tree and rtentries, which is not compatible with the on-going routing changes.
I'm happy to re-add analogue of this code after the dust settles over the stack changes and control plane KPI if necessary, but it looks more like an unused piece of code now.