pktgen: use dynamic allocation for debug print buffer