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

Commit 79c83ea1 authored by alex chen's avatar alex chen Committed by Linus Torvalds
Browse files

ocfs2: fix snprintf format specifier in dlmdebug.c



Use snprintf format specifier "%lu" instead of "%ld" for argument of type
'unsigned long'.

Signed-off-by: default avatarAlex Chen <alex.chen@huawei.com>
Reviewed-by: default avatarJoseph Qi <joseph.qi@huawei.com>
Reviewed-by: default avatarMark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 41d6247f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ static int debug_purgelist_print(struct dlm_ctxt *dlm, char *buf, int len)
	}
	spin_unlock(&dlm->spinlock);

	out += snprintf(buf + out, len - out, "Total on list: %ld\n", total);
	out += snprintf(buf + out, len - out, "Total on list: %lu\n", total);

	return out;
}
@@ -464,7 +464,7 @@ static int debug_mle_print(struct dlm_ctxt *dlm, char *buf, int len)
	spin_unlock(&dlm->master_lock);

	out += snprintf(buf + out, len - out,
			"Total: %ld, Longest: %ld\n", total, longest);
			"Total: %lu, Longest: %lu\n", total, longest);
	return out;
}