We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2dca0 commit bf4d79aCopy full SHA for bf4d79a
drivers/pcie/host/shell.c
@@ -46,15 +46,21 @@ static void show_bars(const struct shell *shell, pcie_bdf_t bdf)
46
continue;
47
}
48
49
- shell_fprintf(shell, SHELL_NORMAL, " bar %d: %s%s %x\n",
+ shell_fprintf(shell, SHELL_NORMAL, " bar %d: %s%s",
50
bar - PCIE_CONF_BAR0,
51
PCIE_CONF_BAR_IO(data) ? "I/O" : "MEM",
52
- PCIE_CONF_BAR_64(data) ? ", 64-bit" : "",
53
- PCIE_CONF_BAR_ADDR(data));
+ PCIE_CONF_BAR_64(data) ? ", 64-bit" : "");
+
54
+ shell_fprintf(shell, SHELL_NORMAL, " addr 0x");
55
56
if (PCIE_CONF_BAR_64(data)) {
57
++bar;
58
+ shell_fprintf(shell, SHELL_NORMAL, "%08x",
59
+ pcie_conf_read(bdf, bar));
60
61
62
+ shell_fprintf(shell, SHELL_NORMAL, "%08x\n",
63
+ PCIE_CONF_BAR_ADDR(data));
64
65
66
0 commit comments