if some PER errors has to be put to the stderr, give at least info where it's coming...
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 4 Jun 2005 22:05:50 +0000 (22:05 +0000)
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 4 Jun 2005 22:05:50 +0000 (22:05 +0000)
BTW: time for something like a "NotImplementedException"?!?, this seems to be a common mechanism, if a dissector hasn't implemented all protocol elemements (yet)

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14554 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-per.h

index 6fec1d537588175ca0ea85ebc6a4d82c973b432a..56c28aba59c451315006c89ca56cad42b20aa8fd 100644 (file)
@@ -28,7 +28,7 @@
 
 #define PER_NOT_DECODED_YET(x) \
 proto_tree_add_text(tree, tvb, 0, 0, "something unknown here [%s]",x); \
-fprintf(stderr,"Not decoded yet in packet : %d  [%s]\n", pinfo->fd->num,x); \
+fprintf(stderr,"[%s %u] Not decoded yet in packet : %d  [%s]\n", __FILE__, __LINE__, pinfo->fd->num,x); \
 if (check_col(pinfo->cinfo, COL_INFO)){ \
        col_append_fstr(pinfo->cinfo, COL_INFO, "[UNKNOWN PER: %s]", x); \
 } \