Commit 8856f710 authored by Shuah Khan's avatar Shuah Khan

selftests/watchdog: print watchdog_info option strings

Change show watchdog_info output to print option strings instead
of hex values to make it user friendly and human readable.
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
parent ac7e8d3e
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
* - Could be tested against softdog driver on systems that * - Could be tested against softdog driver on systems that
* don't have watchdog hardware. * don't have watchdog hardware.
* - TODO: * - TODO:
* - Enhance coverage of ioctl return values - flags and status.
* - Enhance test to add coverage for WDIOC_GETTEMP. * - Enhance test to add coverage for WDIOC_GETTEMP.
* *
* Reference: Documentation/watchdog/watchdog-api.rst * Reference: Documentation/watchdog/watchdog-api.rst
...@@ -314,7 +313,7 @@ int main(int argc, char *argv[]) ...@@ -314,7 +313,7 @@ int main(int argc, char *argv[])
printf(" identity:\t\t%s\n", info.identity); printf(" identity:\t\t%s\n", info.identity);
printf(" firmware_version:\t%u\n", printf(" firmware_version:\t%u\n",
info.firmware_version); info.firmware_version);
printf(" options:\t\t%08x\n", info.options); print_status(info.options);
break; break;
default: default:
......
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