Jelajahi Sumber

multiboot2-header: Don't trip up on ModuleAlign

Niklas Sombert 2 tahun lalu
induk
melakukan
80c2137477
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  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);