From 6ba1685adef62fadf4fdfa1bc641827542bf916f Mon Sep 17 00:00:00 2001 From: Howard Wu Date: Fri, 18 Apr 2025 01:33:58 +0800 Subject: [PATCH] Fix some seopt log --- native/src/sepolicy/sepolicy.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/native/src/sepolicy/sepolicy.cpp b/native/src/sepolicy/sepolicy.cpp index 3b1641fed..6ea4eb544 100644 --- a/native/src/sepolicy/sepolicy.cpp +++ b/native/src/sepolicy/sepolicy.cpp @@ -664,13 +664,13 @@ bool sepol_impl::add_typeattribute(Str type, Str attr) { LOGW("type %.*s does not exist\n", (int) type.size(), type.data()); return false; } else if (type_d->flavor == TYPE_ATTRIB) { - LOGW("type %.*s is an attribute\n", (int) attr.size(), attr.data()); + LOGW("type %.*s is an attribute\n", (int) type.size(), type.data()); return false; } type_datum *attr_d = hashtab_find(db->p_types.table, attr); if (attr_d == nullptr) { - LOGW("attribute %.*s does not exist\n", (int) type.size(), type.data()); + LOGW("attribute %.*s does not exist\n", (int) attr.size(), attr.data()); return false; } else if (attr_d->flavor != TYPE_ATTRIB) { LOGW("type %.*s is not an attribute \n", (int) attr.size(), attr.data());