summaryrefslogtreecommitdiff
path: root/apf_run.c
diff options
context:
space:
mode:
authorYuyang Huang <yuyanghuang@google.com>2024-01-26 17:21:26 +0900
committerYuyang Huang <yuyanghuang@google.com>2024-01-26 20:13:02 +0000
commit8f442e2c29d24ec811ce838b231f6c55ed78075a (patch)
treee14d7bb674aa9490921906490a0529c55fa4ae90 /apf_run.c
parentd3e9493f3f027bfcb4857989faa25df758090f27 (diff)
downloadapf-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apf_run.c b/apf_run.c
index 242a7bb..f13ba32 100644
--- a/apf_run.c
+++ b/apf_run.c
@@ -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");
}