improved debug print() commands for the device discovery