From 4b2067d7eab8e24894ad374e426a0f1ebd773c4b Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Tue, 9 Mar 2021 12:47:59 +0100 Subject: [PATCH] bugreport: Ensure DLog tag is always specified Change-Id: I4ccde9340c18e9589fdfdc03ba0937c2632ff4bf --- src/bugreport-service/bugreport-service.c | 2 ++ src/bugreport-service/bugreport-service.h | 19 +++++++++++++++++++ src/bugreport-service/diagnostics/diagnostics.c | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/bugreport-service/bugreport-service.h diff --git a/src/bugreport-service/bugreport-service.c b/src/bugreport-service/bugreport-service.c index f73947d..36c9a59 100644 --- a/src/bugreport-service/bugreport-service.c +++ b/src/bugreport-service/bugreport-service.c @@ -27,6 +27,8 @@ #include #include +#include "bugreport-service.h" + #include "crash-manager/crash-manager.h" #include "libbugreport.h" #include "shared/log.h" diff --git a/src/bugreport-service/bugreport-service.h b/src/bugreport-service/bugreport-service.h new file mode 100644 index 0000000..2c7a29e --- /dev/null +++ b/src/bugreport-service/bugreport-service.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2021 Samsung Electronics 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. + */ +#pragma once + +#define LOG_TAG "BUGREPORT-SERVICE" + diff --git a/src/bugreport-service/diagnostics/diagnostics.c b/src/bugreport-service/diagnostics/diagnostics.c index f5dc1a1..e66394f 100644 --- a/src/bugreport-service/diagnostics/diagnostics.c +++ b/src/bugreport-service/diagnostics/diagnostics.c @@ -28,9 +28,9 @@ #include #include #include -#include "diagnostics/diagnostics.h" -#define LOG_TAG "CRASH_MANAGER" +#include "bugreport-service.h" +#include "diagnostics/diagnostics.h" #include "defs.h" #include "shared/log.h" -- 2.7.4