Drop trailing NUL in .sbat/.sdmagic sections (#34950)

This commit is contained in:
Lennart Poettering
2024-10-31 21:48:18 +01:00
committed by GitHub
3 changed files with 16 additions and 8 deletions
+14 -5
View File
@@ -8,17 +8,26 @@
#include "sbat.h"
#include "tests.h"
TEST(sbat_section_text) {
log_info("---SBAT-----------&<----------------------------------------\n"
TEST(BOOT_SBAT) {
log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
"------------------>&-----------------------------------------",
#ifdef SBAT_DISTRO
SBAT_BOOT_SECTION_TEXT
#else
"(not defined)"
#endif
);
}
TEST(STUB_SBAT) {
log_info("---SBAT-----------&<-----------------------------------------\n"
"%s"
"------------------>&-----------------------------------------",
#ifdef SBAT_DISTRO
SBAT_BOOT_SECTION_TEXT,
SBAT_STUB_SECTION_TEXT
#else
"(not defined)",
""
"(not defined)"
#endif
);
}