ENTRY_CODE
if ((rval = nvlist_lookup_string(entry_data, ENTRY_CODE,
if (nvlist_add_string(entry, ENTRY_CODE, log_code) != 0) {