Commit d9cf4841 authored by Christoph Hellwig's avatar Christoph Hellwig

uuid: fix incorrect uuid_equal conversion in test_uuid_test

Fixes: df33767d ("uuid: hoist helpers uuid_equal() and uuid_copy() from xfs")
Reported-by: default avatarkernel test robot <xiaolong.ye@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarAmir Goldstein <amir73il@gmail.com>
Reviewed-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent cb8c65cc
...@@ -82,7 +82,7 @@ static void __init test_uuid_test(const struct test_uuid_data *data) ...@@ -82,7 +82,7 @@ static void __init test_uuid_test(const struct test_uuid_data *data)
test_uuid_failed("conversion", false, true, data->uuid, NULL); test_uuid_failed("conversion", false, true, data->uuid, NULL);
total_tests++; total_tests++;
if (uuid_equal(&data->be, &be)) { if (!uuid_equal(&data->be, &be)) {
sprintf(buf, "%pUb", &be); sprintf(buf, "%pUb", &be);
test_uuid_failed("cmp", false, true, data->uuid, buf); test_uuid_failed("cmp", false, true, data->uuid, buf);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment