Ethereal-dev: [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: "Anders Broman (EAB)" <anders.broman@xxxxxxxxxxxxxxx>
Date: Thu, 20 Feb 2003 08:45:08 +0100
Hi,
Small pach to add printout of the cause value ' value' in dec. format.
Best regards
Anders Broman


--- packet-q931.c	Tue Feb 18 20:26:55 2003
+++ packet-q931_b.c	Tue Feb 18 20:29:09 2003
@@ -1062,7 +1062,7 @@
 		return;
 	octet = tvb_get_guint8(tvb, offset);
 	proto_tree_add_text(tree, tvb, offset, 1,
-	    "Cause value: %s",
+	    "Cause value: %s (%i)",
 	    val_to_str(octet & 0x7F, q931_cause_code_vals,
 	      "Unknown (0x%02X)"));
 	offset += 1;