Fix a few trace issues

- Using (dump_byte - 1) did not wrap properly when the packet size was non-power-of-two
- Port name was wrong