This is our old Q&A Site. Please post any new questions and answers at
proto_tree_add_text(header_tree, tvb, startValue, 3, "%s: %d", val_to_str(Tag, value_string_array, "Unknown Tag:(0x%02x)"),value);

the isn't considering the "%s: and %d"

it is only considering %s: and the result is invalid!

i need the alternate for the same function using proto_tree_add_item()

Thanks in advance

This question is marked "community wiki".

asked 02 May '17, 23:31

DhanuShalz's gravatar image

accept rate: 100%

edited 03 May '17, 03:02

grahamb's gravatar image

grahamb ♦

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 May '17, 23:31

question was seen: 908 times

last updated: 03 May '17, 03:02

p​o​w​e​r​e​d by O​S​Q​A