diff options
-rw-r--r-- | AUTHORS | 1 | ||||
-rw-r--r-- | print.c | 10 |
2 files changed, 10 insertions, 1 deletions
@@ -2444,6 +2444,7 @@ Steve Packet <packetsteve [AT] hotmail.com> Javier Acuna <javier.acuna [AT] sixbell.cl> Miklos Szurdi <szurdimiklos [AT] yahoo.com> Cvetan Ivanov <zezo [AT] spnet.net> +Vasanth Manickam <vasanth.manickam [AT] bt.com> Alain Magloire <alainm[AT]rcsm.ece.mcgill.ca> was kind enough to give his permission to use his version of snprintf.c. @@ -346,7 +346,15 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data) } if (fi->length > 0) { fputs("\" value=\"", pdata->fh); - write_pdml_field_hex_value(pdata, fi); + + if (fi->hfinfo->bitmask!=0) { + fprintf(pdata->fh, "%X", fvalue_get_integer(&fi->value)); + fputs("\" unmaskedvalue=\"", pdata->fh); + write_pdml_field_hex_value(pdata, fi); + } + else { + write_pdml_field_hex_value(pdata, fi); + } } } |