You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/10/10 17:18:04 UTC
[mynewt-core] 02/04: mbuf.gdb: Remove "total length" line
This is an automated email from the ASF dual-hosted git repository.
ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
commit ccdfb6758503052214868a83008c1a97aa0d5f0c
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Wed Oct 9 17:39:47 2019 -0700
mbuf.gdb: Remove "total length" line
The output of om_mbuf_chain_print included a "total length" line at the
end. This line is unnecessary since its value is just a copy of the
`omp_len` field printed earlier.
---
compiler/gdbmacros/mbuf.gdb | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/compiler/gdbmacros/mbuf.gdb b/compiler/gdbmacros/mbuf.gdb
index 60c373b..523de2e 100644
--- a/compiler/gdbmacros/mbuf.gdb
+++ b/compiler/gdbmacros/mbuf.gdb
@@ -120,11 +120,14 @@ define mn_mbuf_chain_print
while $om != 0
printf "Mbuf addr: %p\n", $om
mn_mbuf_print $om
+
set $totlen += $om->om_len
set $om = $om->om_next.sle_next
- end
- printf "total length: %d\n", $totlen
+ if $om != 0
+ printf "\n"
+ end
+ end
end
document mn_mbuf_chain_print
@@ -142,11 +145,14 @@ define mn_mbuf_chain_dump
while $om != 0
printf "Mbuf addr: %p\n", $om
mn_mbuf_dump $om
+
set $totlen += $om->om_len
set $om = $om->om_next.sle_next
- end
- printf "total length: %d\n", $totlen
+ if $om != 0
+ printf "\n"
+ end
+ end
end
document mn_mbuf_chain_dump