From 9a20094bb9286c001b9497d13768dcfaa4d33b2b Mon Sep 17 00:00:00 2001 From: zhujiaxin Date: Sat, 25 Nov 2023 19:30:55 +0800 Subject: [PATCH] --amend Signed-off-by: zhujiaxin --- OAT.xml | 1 - module_sample/BUILD.gn | 22 ++++++++++------------ module_sample/ko_sample.c | 4 ++-- 3 files changed, 12 insertions(+), 15 deletions(-) diff --git a/OAT.xml b/OAT.xml index 83d9fb9..c024cf3 100644 --- a/OAT.xml +++ b/OAT.xml @@ -81,7 +81,6 @@ Note:If the text contains special characters, please escape them according to th - diff --git a/module_sample/BUILD.gn b/module_sample/BUILD.gn index 9e5715f..f76c9d9 100644 --- a/module_sample/BUILD.gn +++ b/module_sample/BUILD.gn @@ -1,15 +1,13 @@ -# Copyright (c) 2023 Huawei Device Co., Ltd. -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (c) 2023 Huawei Device Co., Ltd. + * + * ko build sample + * + * Author: z-jax + * + * Data: 2023-11-25 + */ import("//build/templates/kernel/ohos_kernel_build.gni") diff --git a/module_sample/ko_sample.c b/module_sample/ko_sample.c index b59fc84..feea4a5 100644 --- a/module_sample/ko_sample.c +++ b/module_sample/ko_sample.c @@ -15,12 +15,12 @@ static int kosample_init(void) { - pr_info("ko sample: %s\n", __func__); + pr_err("ko sample: %s\n", __func__); return 0; } static void kosample_exit(void) { - pr_info("ko sample: %s\n", __func__); + pr_err("ko sample: %s\n", __func__); } module_init(kosample_init);