remove dbg_printf accidentally added in r3026
fix RemoteCaptureIsReady returning file number when no data is available