From: Thomas Weißschuh Date: Mon, 19 Dec 2022 20:24:54 +0000 (+0000) Subject: wdctl: read options from sysfs X-Git-Tag: v2.39-rc1~21^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dfe3a759d9a13ed5046a7cc2a84054c6bab28173;p=thirdparty%2Futil-linux.git wdctl: read options from sysfs --- diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index b5c9c40680..e5f38dbdc8 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -551,6 +551,7 @@ static int read_watchdog_from_sysfs(struct wd_device *wd) ul_path_read_buffer(sys, (char *) wd->ident.identity, sizeof(wd->ident.identity), "identity"); ul_path_read_u32(sys, &wd->ident.firmware_version, "fw_version"); + ul_path_scanf(sys, "options", "%x", &wd->ident.options); ul_path_scanf(sys, "status", "%x", &wd->status); ul_path_read_u32(sys, &wd->bstatus, "bootstatus");