Quellcode durchsuchen

multiboot2-header: Don't trip up on ModuleAlign

Niklas Sombert vor 2 Jahren
Ursprung
Commit
80c2137477
1 geänderte Dateien mit 4 neuen und 0 gelöschten Zeilen
  1. 4 0
      multiboot2-header/src/header.rs

+ 4 - 0
multiboot2-header/src/header.rs

@@ -397,6 +397,10 @@ impl Debug for Multiboot2HeaderTagIter {
                 let entry = t as *const EntryEfi64HeaderTag;
                 let entry = &*(entry);
                 debug.entry(entry);
+            } else if typ == HeaderTagType::ModuleAlign {
+                let entry = t as *const ModuleAlignHeaderTag;
+                let entry = &*(entry);
+                debug.entry(entry);
             } else if typ == HeaderTagType::Relocatable {
                 let entry = t as *const RelocatableHeaderTag;
                 let entry = &*(entry);