more coverity fixes, get rid of printf
fix compilation
Merge pull request #25 from KroArtem/master

more coverity fixes, get rid of printf in device_manager.cpp