bej_tree: initialize node attribute format

While initializing the parent and child nodes, initialize the reserved
bit of the node attribute format to prevent unexpected reserved bit
setting.

And also override gtest's PrintTo function to avoid accessing
uninitialized areas due to structure alignment.

Tested:
Run test cases pass

Change-Id: I5b113f47c41ad15de578b80bf5e859f3b0c40503
Signed-off-by: Brian Ma <chma0@nuvoton.com>
3 files changed
tree: f343f078a4b124fe2387cc99ca098bdd957ce217
  1. include/
  2. src/
  3. subprojects/
  4. test/
  5. .clang-format
  6. .gitignore
  7. LICENSE
  8. MAINTAINERS
  9. meson.build
  10. meson.options
  11. OWNERS
  12. README.md
README.md

libbej

This library can be used to decode RDE bej data. More details on how to use the library will be added in the future.