Ethereal-dev: [Ethereal-dev] "outputing" a uint as both Decimal and Hexadecimal ?

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

From: "Anders Broman (AL/EAB)" <anders.broman@xxxxxxxxxxxx>
Date: Tue, 29 Jun 2004 09:22:52 +0200
Hi,
I would like to output numbers both in hexadecmal and decimal like:
%Offset: 512 ( 0x200), would it be possible to add a BASE_DEC_HEX and how to go about it ?

			proto_tree_add_uint(sigcomp_udvm_tree, hf_udvm_offset, 
				udvm_tvb, start_offset, len, value);

		{ &hf_udvm_offset,
			{ " %Offset", "sigcomp.udvm.offset",
			FT_UINT16, BASE_DEC_HEX, NULL, 0x0,          
			"Offset" }
		},


Best regards
Anders