1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:48:10 +00:00

LibDeviceTree: Make the dump more akin to the original fdtdump

This also makes it possible to compile the library in the Kernel
This commit is contained in:
Hendiadyoin1 2024-01-26 14:30:45 +01:00 committed by Andrew Kaster
parent 38cb5444d9
commit d6bb5579ad
2 changed files with 74 additions and 26 deletions

View file

@ -11,6 +11,12 @@
#include <AK/StringView.h>
#include <LibDeviceTree/FlattenedDeviceTree.h>
#ifdef KERNEL
# include <Kernel/Library/StdLib.h>
#else
# include <string.h>
#endif
namespace DeviceTree {
static ErrorOr<StringView> read_string_view(ReadonlyBytes bytes, StringView error_string)