From 182ffd80c576ecbb44ced5ad2a410faa98fb4039 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 5 Oct 2015 20:07:01 +0200 Subject: Print length --- ber/dump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ber') diff --git a/ber/dump.go b/ber/dump.go index 4b4b1b9..8c08761 100644 --- a/ber/dump.go +++ b/ber/dump.go @@ -14,7 +14,7 @@ func (s *state) dump(indent int) (ret string) { } for s.Len() > 0 { h := s.unmarshalClass() - ret += fmt.Sprintf("%*s%v: ", 2*indent, "", h) + ret += fmt.Sprintf("%3d: %*s%v: ", s.Len(), 2*indent, "", h) if h.Class == classUniversal && h.Kind == kindPrimitive { switch h.Tag { case tagInteger, tagEnumerated: -- cgit v1.2.3