Skip to content

Commit

Permalink
usb: dwc3: debugfs: when unknown, print only the state value
Browse files Browse the repository at this point in the history
whenever we grab an unknown link_state we
were printing the entire register value as
a integer but that's hardly useful; instead,
let's print only the bogus state value.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 6b2a0eb commit 5b9ec33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/dwc3/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ static int dwc3_link_state_show(struct seq_file *s, void *unused)
seq_printf(s, "Resume\n");
break;
default:
seq_printf(s, "UNKNOWN %d\n", reg);
seq_printf(s, "UNKNOWN %d\n", state);
}

return 0;
Expand Down

0 comments on commit 5b9ec33

Please sign in to comment.