mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
KVM: selftests: Remove unnecessary "%s" formatting of a constant string
Drop superfluous %s formatting from assertions in the guest_memfd overlap testcases, as the string being printed doesn't require runtime formatting. No functional change intended. Reported-by: Ackerley Tng <ackerleytng@google.com> Reviewed-by: Ackerley Tng <ackerleytng@google.com> Link: https://patch.msgid.link/20260522172151.3530267-4-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
parent
772989854a
commit
b0e476eb75
|
|
@ -554,7 +554,7 @@ static void test_add_overlapping_private_memory_regions(void)
|
|||
MEM_REGION_GPA * 2 - MEM_REGION_SIZE,
|
||||
MEM_REGION_SIZE * 2,
|
||||
0, memfd, 0);
|
||||
TEST_ASSERT(r == -1 && errno == EEXIST, "%s",
|
||||
TEST_ASSERT(r == -1 && errno == EEXIST,
|
||||
"Overlapping guest_memfd() bindings should fail with EEXIST");
|
||||
|
||||
/* And now the back half of the other slot. */
|
||||
|
|
@ -562,7 +562,7 @@ static void test_add_overlapping_private_memory_regions(void)
|
|||
MEM_REGION_GPA * 2 + MEM_REGION_SIZE,
|
||||
MEM_REGION_SIZE * 2,
|
||||
0, memfd, 0);
|
||||
TEST_ASSERT(r == -1 && errno == EEXIST, "%s",
|
||||
TEST_ASSERT(r == -1 && errno == EEXIST,
|
||||
"Overlapping guest_memfd() bindings should fail with EEXIST");
|
||||
|
||||
close(memfd);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user