diff options
author | Balakrishna Godavarthi <bgodavar@codeaurora.org> | 2021-10-21 11:52:49 +0530 |
---|---|---|
committer | Cheney Ni <cheneyni@google.com> | 2021-11-20 21:35:25 +0800 |
commit | 6492595a24654dbe583c2f4c6e8a8215b2cec501 (patch) | |
tree | 4117cfc8904d2b762d68329cdfcd57496ec5b741 /btpower.c | |
parent | 04f8dce9a2c131409d17387d61c43c8c98a54d22 (diff) | |
download | qcom-6492595a24654dbe583c2f4c6e8a8215b2cec501.tar.gz |
Bluetooth: Add format specifier
This patch adds format specifier corresponding to arguments
passed to print debug logs.
Change-Id: Iff586dd827037cca3419e1c3c9822d2637ef94aa
Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Cheney Ni <cheneyni@google.com>
Diffstat (limited to 'btpower.c')
-rw-r--r-- | btpower.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -237,7 +237,7 @@ static int bt_vreg_enable(struct bt_power_vreg_data *vreg) rc = regulator_enable(vreg->reg); if (rc < 0) { - pr_err("regulator_enable(%s) failed. rc=%d\n", + pr_err("%s: regulator_enable(%s) failed. rc=%d\n", __func__, vreg->name, rc); goto out; } @@ -1000,7 +1000,7 @@ static void set_pwr_srcs_status(struct bt_power_vreg_data *handle) (regulator_is_enabled(handle->reg))) { bt_power_src_status[ldo_index] = (int)regulator_get_voltage(handle->reg); - pr_err("%s(%d) value(%d)\n", handle->name, + pr_err("%s(%pK) value(%d)\n", handle->name, handle, bt_power_src_status[ldo_index]); } else { pr_err("%s:%s is_enabled: %d\n", |