diff mbox series

[5/7,v2] libsepol: Use ERR() instead of log_err()

Message ID 20230809204046.110783-6-jwcart2@gmail.com (mailing list archive)
State Accepted
Commit 1936a23a0ea4
Delegated to: Petr Lautrbach
Headers show
Series Add support for notself and other to CIL | expand

Commit Message

James Carter Aug. 9, 2023, 8:40 p.m. UTC
Since log_err() has been removed, use ERR() instead of log_err() in
module_to_cil.c.

Signed-off-by: James Carter <jwcart2@gmail.com>
---
 libsepol/src/module_to_cil.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libsepol/src/module_to_cil.c b/libsepol/src/module_to_cil.c
index 3e168285..d2868019 100644
--- a/libsepol/src/module_to_cil.c
+++ b/libsepol/src/module_to_cil.c
@@ -1191,10 +1191,10 @@  static int avrule_list_to_cil(int indent, struct policydb *pdb, struct avrule *a
 		if (avrule->flags & RULE_NOTSELF) {
 			if (!ebitmap_is_empty(&avrule->ttypes.types) || !ebitmap_is_empty(&avrule->ttypes.negset)) {
 				if (avrule->source_filename) {
-					log_err("%s:%lu: Non-trivial neverallow rules with targets containing not or minus self not yet supported",
+					ERR(NULL, "%s:%lu: Non-trivial neverallow rules with targets containing not or minus self not yet supported",
 						avrule->source_filename, avrule->source_line);
 				} else {
-					log_err("Non-trivial neverallow rules with targets containing not or minus self not yet supported");
+					ERR(NULL, "Non-trivial neverallow rules with targets containing not or minus self not yet supported");
 				}
 				rc = -1;
 				goto exit;