print_lookup_table(): Print metadata entries
authorEric Biggers <ebiggers3@gmail.com>
Mon, 20 May 2013 05:10:21 +0000 (00:10 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 20 May 2013 05:10:21 +0000 (00:10 -0500)
src/lookup_table.c

index a24cf68..d225d62 100644 (file)
@@ -758,9 +758,11 @@ do_print_lookup_table_entry(struct wim_lookup_table_entry *lte, void *fp)
  * Prints the lookup table of a WIM file.
  */
 WIMLIBAPI void
-wimlib_print_lookup_table(WIMStruct *w)
+wimlib_print_lookup_table(WIMStruct *wim)
 {
-       for_lookup_table_entry(w->lookup_table,
+       for (int i = 0; i < wim->hdr.image_count; i++)
+               print_lookup_table_entry(wim->image_metadata[i]->metadata_lte, stdout);
+       for_lookup_table_entry(wim->lookup_table,
                               do_print_lookup_table_entry,
                               stdout);
 }