Parcourir la source

multiboot2-header: Don't trip up on ModuleAlign

Niklas Sombert il y a 2 ans
Parent
commit
80c2137477
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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);