summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorLeif Lindholm <quic_llindhol@quicinc.com>2024-09-30 14:37:16 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-10-02 02:58:31 +0000
commit829229689369e3dbadad8944e4522e0a39ea5f8b (patch)
tree018ee6bba95e3f076b7a75c08df28d6a2885e7f5 /MdePkg/Library
parent8040fdbb8b8bbca8a3bb19ecc2b01918ffa8c235 (diff)
downloadedk2-829229689369e3dbadad8944e4522e0a39ea5f8b.tar.gz
MdePkg: add FdtStrerror wrapper to BaseFdtLib
Add a wrapper for fdt_strerror () and add the currently supported error code defines from submodule. Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com>
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseFdtLib/FdtLib.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/MdePkg/Library/BaseFdtLib/FdtLib.c b/MdePkg/Library/BaseFdtLib/FdtLib.c
index b1ae2a387c..1b1d21f502 100644
--- a/MdePkg/Library/BaseFdtLib/FdtLib.c
+++ b/MdePkg/Library/BaseFdtLib/FdtLib.c
@@ -503,3 +503,14 @@ FdtNodeOffsetByCompatible (
{
return fdt_node_offset_by_compatible (Fdt, StartOffset, Compatible);
}
+
+/* Debug functions. */
+CONST
+CHAR8
+*
+FdtStrerror (
+ IN INT32 ErrVal
+ )
+{
+ return fdt_strerror (ErrVal);
+}