On Wed, 2016-05-25 at 16:26 -0700, Dan Williams wrote:
Instead of being silent when no list options are specified, default
to
list the device if it is the only parameter specified. For example,
before:
# ndctl list -d nmem0
#
...after:
# ndctl list -d nmem0
{
"dev":"nmem0",
"id":"cdab-ffffffff"
}
#
...in other words omit the need for --dimms to be specified for this
case.
Reported-by: Vishal Verma <vishal.l.verma(a)intel.com>
Signed-off-by: Dan Williams <dan.j.williams(a)intel.com>
---
ndctl/builtin-list.c | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
Looks good!
Reviewed-by: Vishal Verma <vishal.l.verma(a)intel.com>