uuid: fix incorrect uuid_equal conversion in test_uuid_test
Fixes: df33767d
("uuid: hoist helpers uuid_equal() and uuid_copy() from xfs")
Reported-by: kernel test robot <xiaolong.ye@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
cb8c65ccff
commit
d9cf484165
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue