No, the format is different. This function also prints a complete hex string (no space, no line number) which is helpful for copying and pasting directly to scapy tool for parsing a packet when debugging.