media: ir_toy: print firmware version in correct format

A value of 25 means firmware version 2.5.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Sean Young 2021-09-02 11:50:23 +02:00 committed by Mauro Carvalho Chehab
parent c73ba202a8
commit 5173cca012

View file

@ -440,8 +440,9 @@ static int irtoy_probe(struct usb_interface *intf,
if (err)
goto free_rcdev;
dev_info(irtoy->dev, "version: hardware %u, firmware %u, protocol %u",
irtoy->hw_version, irtoy->sw_version, irtoy->proto_version);
dev_info(irtoy->dev, "version: hardware %u, firmware %u.%u, protocol %u",
irtoy->hw_version, irtoy->sw_version / 10,
irtoy->sw_version % 10, irtoy->proto_version);
if (irtoy->sw_version < MIN_FW_VERSION) {
dev_err(irtoy->dev, "need firmware V%02u or higher",