[log] add otLogGenerateNextHexDumpLine() to generate hex dump (#9555)

This commit adds a public OT API to generate hex dump output line by
line. This function is then used for both `LogDump{}()` and frame
capture output by CLI `promiscuous` command (removing repeated
similar code) and harmonize the hex dump outputs.
This commit is contained in:
Abtin Keshavarzian
2023-10-25 14:54:33 -07:00
committed by GitHub
parent 9106817c62
commit 91b7c3ff3f
10 changed files with 203 additions and 142 deletions
+2 -3
View File
@@ -76,9 +76,8 @@ expect "16 bytes from $addr: icmp_seq=1"
expect_line "Done"
switch_node 3
expect -re {============================================\[len = +\d+]============================}
expect -re {\|( ([0-9A-Z]{2}|\.\.)){16}\|( .){16}\|}
expect -- "-----------------------------------------------------------------------------------"
expect -re {==============================\[RX len=\d+\]==============================}
expect -- "------------------------------------------------------------------------"
send "promiscuous disable\n"
expect_line "Done"