Ethereal-dev: Re: [Ethereal-dev] Add Cause value iin decimal to q.931 printout

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Thu, 20 Feb 2003 02:14:19 -0800
On Thu, Feb 20, 2003 at 08:45:08AM +0100, Anders Broman (EAB) wrote:
> Small pach to add printout of the cause value ' value' in dec. format.

Unfortunately, as you're not passing the cause value as an argument to
"proto_tree_add_text()", you'll get random junk, not the cause value, as
the value.

Also, note that if the cause value is unknown, it'll show up in the
output, in hex.  If you really always want the cause code value to be
printed, not just to have it printed if it's not known, ou should get
rid of the " (0x%02X)" in the last argument to "val_to_str()", as that
will cause it to show up twice if unknown.