From: Felipe Balbi Date: Fri, 22 Feb 2013 12:29:39 +0000 (+0200) Subject: usb: dwc3: debugfs: when unknown, print only the state value X-Git-Tag: next-20130320~22^2~152 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5b9ec339e45916ee682b8402597d7f2c6a04da17;p=karo-tx-linux.git usb: dwc3: debugfs: when unknown, print only the state value 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 --- diff --git a/drivers/usb/dwc3/debugfs.c b/drivers/usb/dwc3/debugfs.c index c740c7643f43..5512560e972b 100644 --- a/drivers/usb/dwc3/debugfs.c +++ b/drivers/usb/dwc3/debugfs.c @@ -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;