diff options
author | Yuyang Huang <yuyanghuang@google.com> | 2024-01-26 17:21:26 +0900 |
---|---|---|
committer | Yuyang Huang <yuyanghuang@google.com> | 2024-01-26 20:13:02 +0000 |
commit | 8f442e2c29d24ec811ce838b231f6c55ed78075a (patch) | |
tree | e14d7bb674aa9490921906490a0529c55fa4ae90 /apf_run.c | |
parent | d3e9493f3f027bfcb4857989faa25df758090f27 (diff) | |
download | apf-8f442e2c29d24ec811ce838b231f6c55ed78075a.tar.gz |
v5: refine apf_transmit_buffer() reference implementation
Add a check in apf_transmit_buffer() within test_buf_allocator.c to
ensure the provided pointer references apf_test_buffer.
Remove the redundant copy of apf_test_buffer to apf_test_tx_packet.
Test: TH
Change-Id: I5eec1971efd2965d59bd9399596463399bc92be5
Diffstat (limited to 'apf_run.c')
-rw-r--r-- | apf_run.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -162,7 +162,7 @@ void maybe_print_tracing_header() { void print_transmitted_packet() { printf("transmitted packet: "); - print_hex(apf_test_tx_packet, (int) apf_test_tx_packet_len); + print_hex(apf_test_buffer, (int) apf_test_tx_packet_len); printf("\n"); } |