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

Commit 17b6e29c authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: pmic-voter: make debug status more parsable"

parents 67fd1b8c 227d4746
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -521,11 +521,10 @@ static int show_votable_clients(struct seq_file *m, void *data)

	lock_votable(votable);

	seq_printf(m, "Votable %s:\n", votable->name);
	seq_puts(m, "clients:\n");
	for (i = 0; i < votable->num_clients; i++) {
		if (votable->client_strs[i]) {
			seq_printf(m, "%-15s:\t\ten=%d\t\tv=%d\n",
			seq_printf(m, "%s: %s:\t\t\ten=%d v=%d\n",
					votable->name,
					votable->client_strs[i],
					votable->votes[i].enabled,
					votable->votes[i].value);
@@ -544,11 +543,11 @@ static int show_votable_clients(struct seq_file *m, void *data)
		break;
	}

	seq_printf(m, "type: %s\n", type_str);
	seq_puts(m, "Effective:\n");
	effective_client_str = get_effective_client_locked(votable);
	seq_printf(m, "%-15s:\t\tv=%d\n",
	seq_printf(m, "%s: effective=%s type=%s v=%d\n",
			votable->name,
			effective_client_str ? effective_client_str : "none",
			type_str,
			get_effective_result_locked(votable));
	unlock_votable(votable);