Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
redox-os
drivers
Commits
66826a8b
Commit
66826a8b
authored
Dec 01, 2017
by
Browse files
unsafe edited
parent
b7fe49cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcid/src/main.rs
View file @
66826a8b
...
...
@@ -38,7 +38,7 @@ fn main() {
for
bus
in
pci
.buses
()
{
for
dev
in
bus
.devs
()
{
for
func
in
dev
.funcs
()
{
if
let
Some
(
header
)
=
func
.header
()
{
if
let
Some
(
header
)
=
unsafe
func
.header
()
{
let
pci_class
=
PciClass
::
from
(
header
.class
);
let
mut
string
=
format!
(
"PCI {:>02X}/{:>02X}/{:>02X} {:>04X}:{:>04X} {:>02X}.{:>02X}.{:>02X}.{:>02X} {:?}"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment