diff options
author | Nicolas Norvez <norvez@chromium.org> | 2018-09-30 16:12:04 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-02 05:19:57 -0700 |
commit | f7882a11b335dd67597bc0cb230acf1f0a81cd67 (patch) | |
tree | ee0559e39431b9cc021d18200af68e3abddf65fc /util | |
parent | d92cb76f16a1ddd9e1e14276d7d0fae5618264a3 (diff) | |
download | chrome-ec-f7882a11b335dd67597bc0cb230acf1f0a81cd67.tar.gz |
fpsensor: FP_INFO reports the template version
Add a field to the ec_response_fp_info structure to report the version
of the template format supported by the hardware.
We'd normally uprev the structure version, but given there are only 2
clients of that API (ectool and biod), we'll rather synchronise the
submission of the CLs to avoid unnecessary complexity.
BRANCH=nocturne
BUG=b:116979455
TEST=ectool --name=cros_fp fpinfo
TEST=start biod, log shows the format version
Change-Id: Ibbf2a3603d4f28c7550523f785aeb7fb740ac9ea
Signed-off-by: Nicolas Norvez <norvez@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1252459
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/util/ectool.c b/util/ectool.c index b29ddd7e03..7fcc0414d2 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -1526,9 +1526,10 @@ int cmd_fp_info(int argc, char *argv[]) } if (cmdver == 1) { - printf("Templates: size %d count %d/%d dirty bitmap %x\n", - r.template_size, r.template_valid, r.template_max, - r.template_dirty); + printf("Templates: version %d size %d count %d/%d" + " dirty bitmap %x\n", + r.template_version, r.template_size, r.template_valid, + r.template_max, r.template_dirty); } return 0; |