diff options
author | Sven Wegener <sven.wegener@stealer.net> | 2021-06-12 21:56:21 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-09-18 15:39:41 +0100 |
commit | a2d251573b382ac3466ce94af96a102c943cae2d (patch) | |
tree | ecbf20ee527fa30a1be79c92ce2054e229835d4f /target | |
parent | 7366ee86ef215ed63b118a773fdbb8676b48433d (diff) | |
download | upstream-a2d251573b382ac3466ce94af96a102c943cae2d.tar.gz upstream-a2d251573b382ac3466ce94af96a102c943cae2d.tar.bz2 upstream-a2d251573b382ac3466ce94af96a102c943cae2d.zip |
mediatek: correctly log i2c response
The read response is in the i2c_response variable. Also use %hhx format,
because we're dealing with a single char.
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
(cherry picked from commit c4f9f9b44c82ffeacd9d3c00ba07171c35831337)
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c b/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c index 9f12cda5d1..9bfe0e62f4 100644 --- a/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c +++ b/target/linux/mediatek/files-5.10/drivers/leds/leds-ubnt-ledbar.c @@ -74,14 +74,14 @@ static int ubnt_ledbar_apply_state(struct ubnt_ledbar *ledbar) i2c_response = ubnt_ledbar_perform_transaction(ledbar, setup_msg); if (i2c_response != UBNT_LEDBAR_TRANSACTION_SUCCESS) { - dev_err(&ledbar->client->dev, "Error initializing LED transaction: %02x\n", ret); + dev_err(&ledbar->client->dev, "Error initializing LED transaction: %02hhx\n", i2c_response); ret = -EINVAL; goto out_gpio; } i2c_response = ubnt_ledbar_perform_transaction(ledbar, led_msg); if (i2c_response != UBNT_LEDBAR_TRANSACTION_SUCCESS) { - dev_err(&ledbar->client->dev, "Failed LED transaction: %02x\n", ret); + dev_err(&ledbar->client->dev, "Failed LED transaction: %02hhx\n", i2c_response); ret = -EINVAL; goto out_gpio; } |