File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -311,9 +311,14 @@ static inline unsigned long level_to_directory_size(int level)
311
311
static inline void
312
312
dump_page_info (struct seq_file * m , unsigned long iova , u64 * path )
313
313
{
314
- seq_printf (m , "0x%013lx |\t0x%016llx\t0x%016llx\t0x%016llx\t0x%016llx\t0x%016llx\n" ,
315
- iova >> VTD_PAGE_SHIFT , path [5 ], path [4 ],
316
- path [3 ], path [2 ], path [1 ]);
314
+ seq_printf (m , "0x%013lx |\t0x%016llx\t0x%016llx\t0x%016llx" ,
315
+ iova >> VTD_PAGE_SHIFT , path [5 ], path [4 ], path [3 ]);
316
+ if (path [2 ]) {
317
+ seq_printf (m , "\t0x%016llx" , path [2 ]);
318
+ if (path [1 ])
319
+ seq_printf (m , "\t0x%016llx" , path [1 ]);
320
+ }
321
+ seq_putc (m , '\n' );
317
322
}
318
323
319
324
static void pgtable_walk_level (struct seq_file * m , struct dma_pte * pde ,
You can’t perform that action at this time.
0 commit comments