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

Commit 8780cf9d authored by Jordan Crouse's avatar Jordan Crouse Committed by Raghavendra Rao Ananta
Browse files

soc: qcom: Fix printk format warnings from subsystem restart



Fix three spots in subsystem_restart.c that should use %lld to log print a
time64_t value.

Fixes: 4fcd37a4 ("soc: qcom: Add snapshot of SSR, PIL, Sysmon, and PDR drivers")
Change-Id: Ic0dedbadebc817e544ce736a6cfec7088ebc7309
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 9fbdb30f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -453,7 +453,7 @@ static void do_epoch_check(struct subsys_device *dev)
		if ((curr_time->tv_sec - r_log->time.tv_sec) >
				max_history_time_check) {

			pr_debug("Deleted node with restart_time = %ld\n",
			pr_debug("Deleted node with restart_time = %lld\n",
					r_log->time.tv_sec);
			list_del(&r_log->list);
			kfree(r_log);
@@ -461,10 +461,10 @@ static void do_epoch_check(struct subsys_device *dev)
		}
		if (!n) {
			time_first = &r_log->time;
			pr_debug("Time_first: %ld\n", time_first->tv_sec);
			pr_debug("Time_first: %lld\n", time_first->tv_sec);
		}
		n++;
		pr_debug("Restart_time: %ld\n", r_log->time.tv_sec);
		pr_debug("Restart_time: %lld\n", r_log->time.tv_sec);
	}

	if (time_first && n >= max_restarts_check) {