From: Petri Savolainen <petri.savolai...@linaro.org>

Test the new packet payload print function with couple of
lengths and offsets. Added line feeds to separate packet print
output from CUnit prints.

Signed-off-by: Petri Savolainen <petri.savolai...@linaro.org>
---
/** Email created from pull request 258 (psavol:next-packet-dump)
 ** https://github.com/Linaro/odp/pull/258
 ** Patch: https://github.com/Linaro/odp/pull/258.patch
 ** Base sha: 63d92eb289261d1534b5b9e1e04291faa5e45d30
 ** Merge commit sha: 08d635e94f01265704fddd47cd98b0ccbdc669d4
 **/
 test/validation/api/packet/packet.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/test/validation/api/packet/packet.c 
b/test/validation/api/packet/packet.c
index 431444cf3..37550a2f5 100644
--- a/test/validation/api/packet/packet.c
+++ b/test/validation/api/packet/packet.c
@@ -554,7 +554,10 @@ void packet_test_prefetch(void)
 void packet_test_debug(void)
 {
        CU_ASSERT(odp_packet_is_valid(test_packet) == 1);
+       printf("\n\n");
        odp_packet_print(test_packet);
+       odp_packet_print_data(test_packet, 0, 100);
+       odp_packet_print_data(test_packet, 14, 20);
 }
 
 void packet_test_context(void)
@@ -2152,7 +2155,10 @@ void packet_test_ref(void)
        packet_compare_data(pkt3, ref2);
 
        /* Try print function on a reference */
+       printf("\n\n");
        odp_packet_print(ref2);
+       odp_packet_print_data(ref2, 0, 100);
+       odp_packet_print_data(ref2, 14, 20);
 
        odp_packet_free(ref);
        odp_packet_free(ref2);

Reply via email to