Print size_t variables with %zu

Change-Id: I02bb073b07e9efd03dea2b76b6ba1bd2f552bcaa
Total Memory is not being printed correctly with %u.
%zu represents size_t variables appropriately.


[ROCm/hip commit: cede497cb2]
Tá an tiomantas seo le fáil i:
Satyanvesh Dittakavi tiomanta 2020-09-18 11:55:41 -04:00
1 tuismitheoir 50f20a494d
tiomantas 89524aad2c
1 comhad athraithe
+1 -1
+1 -1
Féach ar an gComhad
@@ -124,7 +124,7 @@ hipError_t ihipMalloc(void** ptr, size_t sizeBytes, unsigned int flags)
if (*ptr == nullptr) {
size_t free = 0, total =0;
hipMemGetInfo(&free, &total);
LogPrintfError("Allocation failed : Device memory : required :%u | free :%u | total :%u \n", sizeBytes, free, total);
LogPrintfError("Allocation failed : Device memory : required :%zu | free :%zu | total :%zu \n", sizeBytes, free, total);
return hipErrorOutOfMemory;
}