cleanup id-debufs driver

Cleaned up id-debufs driver and synchronized changes with
the id-misc driver which has the same functionality.