From 107d7f17de760edce953bf0f47534ca490063790 Mon Sep 17 00:00:00 2001 From: zxiiiii Date: Tue, 22 Apr 2025 03:50:57 +0000 Subject: [PATCH] fix: KLP_SYM_PREFIX does not comply with the livepatch naming conventions Replace the separator "-" with "." to comply with the kernel livepatch naming conventions. Signed-off-by: zxiiiii --- 0010-symbol-lookup-enhancement.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/0010-symbol-lookup-enhancement.patch b/0010-symbol-lookup-enhancement.patch index 0c01619..d611a40 100644 --- a/0010-symbol-lookup-enhancement.patch +++ b/0010-symbol-lookup-enhancement.patch @@ -161,7 +161,7 @@ index c50f0dd..89d37c8 100644 + snprintf(buf, 256, KLP_SYM_PREFIX "%s.%s,%s", objname, name, pos); + } else { + snprintf(pos, 32, "%ld", ref_offset); -+ snprintf(buf, 256, KLP_SYM_PREFIX "%s-%s,%s", objname, ref_name, pos); ++ snprintf(buf, 256, KLP_SYM_PREFIX "%s.%s,%s", objname, ref_name, pos); + } /* Look for an already allocated symbol */ -- Gitee