Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83fadb15 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

power: qpnp-fg-gen4: Fix missing printk argument



Fix a missing printk argument:

 drivers/power/supply/qcom/qpnp-fg-gen4.c:1030:3: note: in expansion of macro 'pr_err'
 ./include/linux/kern_levels.h:5:18: error:
   format '%d' expects a matching 'int' argument [-Werror=format=]

Fixes: 53f2a206 ("power: qpnp-fg-gen4: Add snapshot of driver and its dependencies")
Change-Id: Ic0dedbadb98e7e6daacfd78cb17e931dbc4281db
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 75ffdcd5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt)	"FG: %s: " fmt, __func__
@@ -1027,7 +1027,7 @@ static int fg_gen4_store_count(void *data, u16 *buf, int id, int length)
	rc = fg_sram_write(&chip->fg, CYCLE_COUNT_WORD + id, CYCLE_COUNT_OFFSET,
			(u8 *)buf, length, FG_IMA_DEFAULT);
	if (rc < 0)
		pr_err("failed to write bucket %d rc=%d\n", rc);
		pr_err("failed to write bucket %d rc=%d\n", id, rc);

	return rc;
}