Added debugging messages around open of device file.