summaryrefslogtreecommitdiff
path: root/include/efi_selftest.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2017-10-04 15:31:26 +0200
committerAlexander Graf <agraf@suse.de>2017-10-09 07:00:23 +0200
commite67e7249c8000d72b4c4b985fdeb3e103d65aa9e (patch)
tree6d23111df527f7f508c5423ef97e2d9c253dd055 /include/efi_selftest.h
parente190e8972faf4d5b09e2a92fefc54a1832fd67da (diff)
downloadu-boot-e67e7249c8000d72b4c4b985fdeb3e103d65aa9e.tar.gz
u-boot-e67e7249c8000d72b4c4b985fdeb3e103d65aa9e.tar.bz2
u-boot-e67e7249c8000d72b4c4b985fdeb3e103d65aa9e.zip
efi_selftest: make tests easier to read
Rename counter to more illustrative names. Update notification function description. Simplify notification function. Add comment for arbitrary non-zero value. Document @return. Use constants for return values of setup, execute, teardown. Reported-by: Simon Glass <sjg@chromium.org> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_selftest.h')
-rw-r--r--include/efi_selftest.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/efi_selftest.h b/include/efi_selftest.h
index 76304a2b2a..beb662d4e1 100644
--- a/include/efi_selftest.h
+++ b/include/efi_selftest.h
@@ -14,6 +14,9 @@
#include <efi_api.h>
#include <linker_lists.h>
+#define EFI_ST_SUCCESS 0
+#define EFI_ST_FAILURE 1
+
/*
* Prints an error message.
*