Commit fbe82101 authored by Shannon Nelson's avatar Shannon Nelson Committed by Jeff Kirsher

i40e: allow various base numbers in debugfs aq commands

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: default avatarShannon Nelson <shannon.nelson@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent 038861b2
...@@ -1493,7 +1493,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp, ...@@ -1493,7 +1493,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
if (!desc) if (!desc)
goto command_write_done; goto command_write_done;
cnt = sscanf(&cmd_buf[11], cnt = sscanf(&cmd_buf[11],
"%hx %hx %hx %hx %x %x %x %x %x %x", "%hi %hi %hi %hi %i %i %i %i %i %i",
&desc->flags, &desc->flags,
&desc->opcode, &desc->datalen, &desc->retval, &desc->opcode, &desc->datalen, &desc->retval,
&desc->cookie_high, &desc->cookie_low, &desc->cookie_high, &desc->cookie_low,
...@@ -1541,7 +1541,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp, ...@@ -1541,7 +1541,7 @@ static ssize_t i40e_dbg_command_write(struct file *filp,
if (!desc) if (!desc)
goto command_write_done; goto command_write_done;
cnt = sscanf(&cmd_buf[20], cnt = sscanf(&cmd_buf[20],
"%hx %hx %hx %hx %x %x %x %x %x %x %hd", "%hi %hi %hi %hi %i %i %i %i %i %i %hi",
&desc->flags, &desc->flags,
&desc->opcode, &desc->datalen, &desc->retval, &desc->opcode, &desc->datalen, &desc->retval,
&desc->cookie_high, &desc->cookie_low, &desc->cookie_high, &desc->cookie_low,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment