Skip to content

Commit

Permalink
Make bpf protocols space separated like kernel protocols
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <[email protected]>
  • Loading branch information
seanyoung committed Apr 30, 2024
1 parent 6973c5a commit 0588889
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bin/commands/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,19 +637,19 @@ fn print_rc_dev(list: &[rcdev::Rcdev], config: &crate::Config) {

if lircdev.can_receive_raw() {
match LircMode2::query(lircdev.as_file()) {
Ok(list) => {
Ok(links) => {
print!("\tBPF protocols\t\t: ");

let mut first = true;

for e in list {
for link in links {
if first {
first = false;
} else {
print!(", ")
print!(" ")
}

match e.info() {
match link.info() {
Ok(info) => match info.name_as_str() {
Some(name) => print!("{name}"),
None => print!("{}", info.id()),
Expand Down

0 comments on commit 0588889

Please sign in to comment.