Add better debugging output to packet socket code