diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2022-10-21 10:52:48 -0600 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2022-10-25 21:23:41 -0600 |
commit | 8856f710ed00d974ce20e9894ba2a5e02fe90542 (patch) | |
tree | e244575de41c723514a36fb2a8942070886b7989 /tools/testing/selftests/watchdog | |
parent | ac7e8d3e4a7c90fad10357514f77f550f8bb91f7 (diff) | |
download | linux-stable-8856f710ed00d974ce20e9894ba2a5e02fe90542.tar.gz linux-stable-8856f710ed00d974ce20e9894ba2a5e02fe90542.tar.bz2 linux-stable-8856f710ed00d974ce20e9894ba2a5e02fe90542.zip |
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: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/watchdog')
-rw-r--r-- | tools/testing/selftests/watchdog/watchdog-test.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testing/selftests/watchdog/watchdog-test.c index 469f611a4b88..a4547dd53b4e 100644 --- a/tools/testing/selftests/watchdog/watchdog-test.c +++ b/tools/testing/selftests/watchdog/watchdog-test.c @@ -6,7 +6,6 @@ * - Could be tested against softdog driver on systems that * don't have watchdog hardware. * - TODO: -* - Enhance coverage of ioctl return values - flags and status. * - Enhance test to add coverage for WDIOC_GETTEMP. * * Reference: Documentation/watchdog/watchdog-api.rst @@ -314,7 +313,7 @@ int main(int argc, char *argv[]) printf(" identity:\t\t%s\n", info.identity); printf(" firmware_version:\t%u\n", info.firmware_version); - printf(" options:\t\t%08x\n", info.options); + print_status(info.options); break; default: |