]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: replace KUnit tests for memcmp() with KUNIT_ASSERT_MEMEQ()
authorRyota Sakamoto <sakamo.ryota@gmail.com>
Tue, 27 Jan 2026 14:23:23 +0000 (23:23 +0900)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Jun 2026 12:25:38 +0000 (08:25 -0400)
commit4bdba812279bb1fd64450cf575f58f3546aa7e9e
treebbab83e120956503858d6b34f5f566f0513399ed
parent5200f5f493f79f14bbdc349e402a40dfb32f23c8
ext4: replace KUnit tests for memcmp() with KUNIT_ASSERT_MEMEQ()

Replace KUnit tests for memcmp() with KUNIT_ASSERT_MEMEQ() to improve
debugging that prints the hex dump of the buffers when the assertion fails,
whereas memcmp() only returns an integer difference.

Signed-off-by: Ryota Sakamoto <sakamo.ryota@gmail.com>
Link: https://patch.msgid.link/20260127-fix-fs_ext4-memcmp-v1-1-5c269ae906b6@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc-test.c