aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-03-02 20:14:44 -0800
committerGuy Harris <guy@alum.mit.edu>2019-03-03 04:15:43 +0000
commita5b5f649ffaba29cef89b4968635dd919f1e0204 (patch)
treef7ac7241b5a8a4dbacd24b64a2f02c17e98b24a6
parent23cef3d302b39b16cf35cd61b4bc2ff6594aba9c (diff)
Say what short name already exists, to help the developer somewhat.
That tells then what name they *can't* use for their file-type plugin, because it's already a built-in file type name in Wireshark. Change-Id: Ibbbfda21e1109cf46275008a46b8ea65c8fcf4b5 Reviewed-on: https://code.wireshark.org/review/32291 Reviewed-by: Guy Harris <guy@alum.mit.edu>
-rw-r--r--wiretap/file_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index b1022a25fe..f99821998e 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -1718,7 +1718,7 @@ wtap_register_file_type_subtypes(const struct file_type_subtype_info* fi, const
if (subtype == WTAP_FILE_TYPE_SUBTYPE_UNKNOWN) {
/* register a new one; first verify there isn't one named this already */
if (wtap_short_string_to_file_type_subtype(fi->short_name) > -1 ) {
- g_error("file type short name already exists");
+ g_error("file type short name \"%s\" already exists", fi->short_name);
return subtype;
}