From: Thomas Weißschuh Date: Fri, 25 Nov 2022 21:57:09 +0000 (+0100) Subject: wdctl: read firmware version from sysfs X-Git-Tag: v2.39-rc1~21^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1bf708e8b675e9c40d5e689c90a58e2bb9603088;p=thirdparty%2Futil-linux.git wdctl: read firmware version from sysfs --- diff --git a/sys-utils/wdctl.c b/sys-utils/wdctl.c index a22a59ad37..b5c9c40680 100644 --- a/sys-utils/wdctl.c +++ b/sys-utils/wdctl.c @@ -550,6 +550,7 @@ static int read_watchdog_from_sysfs(struct wd_device *wd) return 1; 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, "status", "%x", &wd->status); ul_path_read_u32(sys, &wd->bstatus, "bootstatus");