Skip to content

Commit 2f55467

Browse files
committed
JSON output plugin: fix identification of unknown IEs
1 parent 593eb41 commit 2f55467

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/output/json/Storage.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,8 +663,8 @@ Storage::add_field_name(const struct fds_drec_field &field)
663663
const struct fds_iemgr_elem *def = field.info->def;
664664

665665
if (def == nullptr) {
666-
// Unknown field - max length is "\"e" + 10x <en> + ":id" + 5x <id> + '\"\0'
667-
snprintf(raw_name, raw_size, "\"e%" PRIu32 ":id%" PRIu16 "\":", field.info->en,
666+
// Unknown field - max length is "\"en" + 10x <en> + ":id" + 5x <id> + '\"\0'
667+
snprintf(raw_name, raw_size, "\"en%" PRIu32 ":id%" PRIu16 "\":", field.info->en,
668668
field.info->id);
669669
buffer_append(raw_name);
670670
return;

0 commit comments

Comments
 (0)