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

Commit 8e1d0d1f authored by Jordan Crouse's avatar Jordan Crouse
Browse files

soc: qcom: Fix string format warning



Fix a string format warning:

 drivers/soc/qcom/service-notifier.c: In function 'add_service_notif':
 ./include/linux/kern_levels.h:5:18: error:
   format '%d' expects argument of type 'int', but argument 3 has type 'long int' [-Werror=format=]
 drivers/soc/qcom/service-notifier.c:515:3: note: in expansion of macro 'pr_err'

Fixes: 6ff955e2 ("soc: qcom: add snapshot of PIL, SSR, SYSMON and SERVICE LOCATOR")
Change-Id: Ic0dedbad3f624cc4125a06e233f772acd7654f76
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent e8d80513
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
 * Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
 */

#define pr_fmt(fmt) "service-notifier: %s: " fmt, __func__
@@ -519,7 +519,7 @@ static void *add_service_notif(const char *service_path, int instance_id,
			&server_ops,
			qmi_indication_handler);
	if (rc < 0) {
		pr_err("Service Notifier qmi handle init failed rc:%d\n", rc);
		pr_err("Service Notifier qmi handle init failed rc:%ld\n", rc);
		goto exit;
	}