Skip to content

Commit

Permalink
uuid: fix incorrect uuid_equal conversion in test_uuid_test
Browse files Browse the repository at this point in the history
Fixes: df33767 ("uuid: hoist helpers uuid_equal() and uuid_copy() from xfs")
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Amir Goldstein <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
  • Loading branch information
Christoph Hellwig committed Jul 21, 2017
1 parent cb8c65c commit d9cf484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test_uuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

total_tests++;
if (uuid_equal(&data->be, &be)) {
if (!uuid_equal(&data->be, &be)) {
sprintf(buf, "%pUb", &be);
test_uuid_failed("cmp", false, true, data->uuid, buf);
}
Expand Down

0 comments on commit d9cf484

Please sign in to comment.