#include #include #include "../lib/debug_config.h" // Simple test packet dump void test_packet_dump() { uint8_t test_data[] = {0x02, 0x11, 0x22, 0x33, 0x44, 0x55}; // Simulate single-line packet dump char hex_buf[32]; snprintf(hex_buf, sizeof(hex_buf), "%02x%02x%02x%02x%02x%02x", test_data[0], test_data[1], test_data[2], test_data[3], test_data[4], test_data[5]); printf("[ETCP] TEST_SEND: len=%zu hex=%s\n", sizeof(test_data), hex_buf); printf("[ETCP] TEST_COMPACT: link=NULL type=0x%02x ts=0 len=%zu\n", test_data[0], sizeof(test_data)); } int main() { printf("=== Testing single-line packet dump ===\n"); test_packet_dump(); return 0; }