M2PA: use G_STRINGIFY to show the user the default preference value.

The preferences subsystem knows/stores the default values for all preferences;
maybe we should use that to show the default values for all preferences.

Change-Id: I562ce9f129c8dfd8378aeb425f70f21b4cf59230
Reviewed-on: https://code.wireshark.org/review/18094
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Jeff Morriss 2016-10-06 10:04:52 -04:00 committed by Anders Broman
parent 9e23ed3109
commit 66433787d0
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ proto_register_m2pa(void)
m2pa_module = prefs_register_protocol(proto_m2pa, proto_reg_handoff_m2pa);
prefs_register_enum_preference(m2pa_module, "version", "M2PA version", "Version used by Wireshark", &m2pa_version, m2pa_version_options, FALSE);
prefs_register_uint_preference(m2pa_module, "port", "M2PA SCTP Port", "Set the port for M2PA messages (Default of 3565)", 10, &global_sctp_port);
prefs_register_uint_preference(m2pa_module, "port", "M2PA SCTP Port", "Set the port for M2PA messages (default: " G_STRINGIFY(SCTP_PORT_M2PA) ")", 10, &global_sctp_port);
}
void