mbuf.gdb: Print packet header before mbuf header
Since the packet header describes the entire chain, it makes sense to
print it before any mbuf headers.  Before this change, the packet header was
printed after the first mbuf header.
@@ -74,14 +74,14 @@ end
define mn_mbuf_print
set $om = (struct os_mbuf *)($arg0)
- printf "Mbuf header: "
- p *$om
-
if ($om)->om_pkthdr_len > 0
printf "Packet header: "
mn_mbuf_pkthdr_print $om
end
+ printf "Mbuf header: "
+ p *$om
+
if ($om)->om_pkthdr_len > sizeof (struct os_mbuf_pkthdr)
printf "User header: "
mn_mbuf_usrhdr_print $om
