wrap printf() in DEBUG
copy incoming frames to local buffers