[Expert] Enhance error output to identify the duplicated field.

Change-Id: Ie38f51e2fa0f846dbcfd7a19f29eac1bd07cffbc
Reviewed-on: https://code.wireshark.org/review/10179
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
AndersBroman 2015-08-21 13:54:53 +02:00 committed by Anders Broman
parent f73e1c2956
commit 30ce20da30
1 changed files with 2 additions and 2 deletions

View File

@ -375,8 +375,8 @@ expert_register_field_array(expert_module_t *module, ei_register_info *exp, cons
*/
if (ptr->ids->ei != -1 && ptr->ids->ei != 0) {
fprintf(stderr,
"Duplicate field detected in call to expert_register_field_array: '%s' is already registered\n",
ptr->eiinfo.summary);
"Duplicate field detected in call to expert_register_field_array: '%s' is already registered, name=%s\n",
ptr->eiinfo.summary, ptr->eiinfo.name);
return;
}