aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-21 21:16:57 -0600
committerTom Rini <trini@konsulko.com>2023-08-31 13:16:54 -0400
commit6c4cad74382aed5d6bd08b4a62b8747c98310dea (patch)
tree813dcb4556d12782a448468ae259c76a48b044fd
parentf72d0d4a2f9a2d05ebeefb583992cc620f7c4c2d (diff)
downloadu-boot-6c4cad74382aed5d6bd08b4a62b8747c98310dea.zip
u-boot-6c4cad74382aed5d6bd08b4a62b8747c98310dea.tar.gz
u-boot-6c4cad74382aed5d6bd08b4a62b8747c98310dea.tar.bz2
event: Rename EVENT_SPY to EVENT_SPY_FULL
The new name makes it clearer that this is for a full spy, with access to the context and the event data. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--boot/vbe_request.c2
-rw-r--r--boot/vbe_simple_os.c2
-rw-r--r--include/event.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/boot/vbe_request.c b/boot/vbe_request.c
index 312edfa..2f218d4 100644
--- a/boot/vbe_request.c
+++ b/boot/vbe_request.c
@@ -230,4 +230,4 @@ static int bootmeth_vbe_ft_fixup(void *ctx, struct event *event)
return 0;
}
-EVENT_SPY(EVT_FT_FIXUP, bootmeth_vbe_ft_fixup);
+EVENT_SPY_FULL(EVT_FT_FIXUP, bootmeth_vbe_ft_fixup);
diff --git a/boot/vbe_simple_os.c b/boot/vbe_simple_os.c
index 8c641ec..3285e43 100644
--- a/boot/vbe_simple_os.c
+++ b/boot/vbe_simple_os.c
@@ -109,4 +109,4 @@ static int bootmeth_vbe_simple_ft_fixup(void *ctx, struct event *event)
return 0;
}
-EVENT_SPY(EVT_FT_FIXUP, bootmeth_vbe_simple_ft_fixup);
+EVENT_SPY_FULL(EVT_FT_FIXUP, bootmeth_vbe_simple_ft_fixup);
diff --git a/include/event.h b/include/event.h
index 062b584..b2cfd65 100644
--- a/include/event.h
+++ b/include/event.h
@@ -195,7 +195,7 @@ static inline const char *event_spy_id(struct evspy_info *spy)
* away the linker-list entry sometimes, e.g. with the EVT_FT_FIXUP entry in
* vbe_simple.c - so for now, make it global.
*/
-#define EVENT_SPY(_type, _func) \
+#define EVENT_SPY_FULL(_type, _func) \
__used ll_entry_declare(struct evspy_info, _type ## _3_ ## _func, \
evspy_info) = _ESPY_REC(_type, _func)