projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
038861b
)
i40e: allow various base numbers in debugfs aq commands
author
Shannon Nelson
<
[email protected]
>
Tue, 11 Nov 2014 20:05:13 +0000
(20:05 +0000)
committer
Jeff Kirsher
<
[email protected]
>
Sat, 6 Dec 2014 11:33:59 +0000
(
03:33
-0800)
Use the 'i' rather than the more restrictive 'x' or 'd' in the aq_cmd
arguments. This makes the user interface much more forgiving and user
friendly.
Change-ID: I5dcd57b9befc047e06b74cf1152a25a3fa9e1309
Signed-off-by: Shannon Nelson <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/i40e/i40e_debugfs.c
b/drivers/net/ethernet/intel/i40e/i40e_debugfs.c
index 3a3c237b76d4c1cfc5089c91216315140dde7892..16ac3f8cb9d1bda96681bc68d7cde56216f128e3 100644
(file)
--- a/
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
+++ b/
drivers/net/ethernet/intel/i40e/i40e_debugfs.c
@@
-1493,7
+1493,7
@@
static ssize_t i40e_dbg_command_write(struct file *filp,
if (!desc)
goto command_write_done;
cnt = sscanf(&cmd_buf[11],
- "%h
x %hx %hx %hx %x %x %x %x %x %x
",
+ "%h
i %hi %hi %hi %i %i %i %i %i %i
",
&desc->flags,
&desc->opcode, &desc->datalen, &desc->retval,
&desc->cookie_high, &desc->cookie_low,
@@
-1541,7
+1541,7
@@
static ssize_t i40e_dbg_command_write(struct file *filp,
if (!desc)
goto command_write_done;
cnt = sscanf(&cmd_buf[20],
- "%h
x %hx %hx %hx %x %x %x %x %x %x %hd
",
+ "%h
i %hi %hi %hi %i %i %i %i %i %i %hi
",
&desc->flags,
&desc->opcode, &desc->datalen, &desc->retval,
&desc->cookie_high, &desc->cookie_low,