mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
hw/uefi: Create and use trace.h wrapper header
The documentation of the trace subsystem (docs/devel/tracing.rst) says that each subdirectory which uses trace events should create a wrapper trace.h file which includes the trace/trace-foo.h generated header, and that .c files then #include "trace.h". We didn't follow this pattern in hw/uefi/. Correct this by creating and using the trace.h wrapper header. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Michael Tokarev
parent
3773ba281a
commit
21f4c5a700
@@ -0,0 +1,2 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
||||
#include "trace/trace-hw_uefi.h"
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "hw/uefi/var-service-api.h"
|
||||
#include "hw/uefi/var-service-edk2.h"
|
||||
|
||||
#include "trace/trace-hw_uefi.h"
|
||||
#include "trace.h"
|
||||
|
||||
static int uefi_vars_pre_load(void *opaque)
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
#include "hw/uefi/var-service-api.h"
|
||||
#include "hw/uefi/var-service-edk2.h"
|
||||
|
||||
#include "trace/trace-hw_uefi.h"
|
||||
#include "trace.h"
|
||||
|
||||
static void calc_policy(uefi_var_policy *pol);
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "hw/uefi/var-service.h"
|
||||
|
||||
#include "trace/trace-hw_uefi.h"
|
||||
#include "trace.h"
|
||||
|
||||
/* ------------------------------------------------------------------ */
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "hw/uefi/var-service-api.h"
|
||||
#include "hw/uefi/var-service-edk2.h"
|
||||
|
||||
#include "trace/trace-hw_uefi.h"
|
||||
#include "trace.h"
|
||||
|
||||
#define EFI_VARIABLE_ATTRIBUTE_SUPPORTED \
|
||||
(EFI_VARIABLE_NON_VOLATILE | \
|
||||
|
||||
Reference in New Issue
Block a user