aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-opensafety.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2011-06-08 12:02:38 +0000
committerAnders Broman <anders.broman@ericsson.com>2011-06-08 12:02:38 +0000
commit30a3988111ff33ab4d8e601b8c6b4093f0db83cc (patch)
treeb7016ca5b93afdad953ccfa45179483e9c46f180 /epan/dissectors/packet-opensafety.c
parent65b246799920bb8d00f40bcc9187fcba29ef330f (diff)
Move the warning "...SercosIII heuristic dissector cannot be registered.." to the handoff routine as sercosIII most probably will
not have registered it's name when opensafty's register routine is executed e.g the warning will always be printed. svn path=/trunk/; revision=37615
Diffstat (limited to 'epan/dissectors/packet-opensafety.c')
-rw-r--r--epan/dissectors/packet-opensafety.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c
index c388a1388e..e007669aed 100644
--- a/epan/dissectors/packet-opensafety.c
+++ b/epan/dissectors/packet-opensafety.c
@@ -1589,14 +1589,6 @@ proto_register_opensafety(void)
new_register_dissector("opensafety", dissect_opensafety, proto_opensafety);
- /* For SercosIII we have check if the plugin is available, and throw a warning if not.
- * Here we do not abort, as the UDP part of SercosIII can still be dissected. If the
- * user asked for termination of the program by WIRESHARK_ABORT_ON_DISSECTOR_BUG we
- * report the dissector bug, which will lead to an abort() call. */
- if ( find_dissector("sercosiii") == NULL )
- {
- g_warning ( "openSAFETY - SercosIII heuristic dissector cannot be registered, openSAFETY/SercosIII native dissection." );
- }
new_register_dissector("opensafety_siii", dissect_opensafety_siii, proto_opensafety);
}
@@ -1632,6 +1624,7 @@ proto_reg_handoff_opensafety(void)
* the ethernet subdissector list. No SercosIII specific data will be dissected
* and a warning will be displayed, recognizing the missing dissector plugin.
*/
+ g_warning ( "openSAFETY - SercosIII heuristic dissector cannot be registered, openSAFETY/SercosIII native dissection." );
dissector_add_uint("ethertype", ETHERTYPE_SERCOS, find_dissector("opensafety_siii"));
}
}