Skip to content

Commit

Permalink
buffer_device_address.cpp: fix printf format specifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
franz committed Feb 27, 2025
1 parent 769f4a8 commit 3a88039
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
//

#include "harness/typeWrappers.h"
#include <cinttypes>

#define BUF_SIZE 1024
#define BUF_SIZE_STR "1024"
Expand Down Expand Up @@ -269,8 +270,10 @@ class BufferDeviceAddressTest {

if (DeviceAddrFromAPI != DeviceAddrFromKernel)
{
test_fail("DeviceAddrFromAPI(%lu) != DeviceAddrFromKernel(%lu)\n",
DeviceAddrFromAPI, DeviceAddrFromKernel);
test_fail("DeviceAddrFromAPI(%" PRIu64
") != DeviceAddrFromKernel(%" PRIu64 ")\n",
(uint64_t)DeviceAddrFromAPI,
(uint64_t)DeviceAddrFromKernel);
}
return TEST_PASS;
}
Expand Down

0 comments on commit 3a88039

Please sign in to comment.