Skip to contentSkip to conversation

master - libdm: Fix a size_t in _dm_malloc_aligned_aux message.

PATCH Alasdair Kergon 1 participant 1 message Jan 12, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=e4e2abc8bc2f257c2d0f9458bab7c87d34626be3
Commit:        e4e2abc8bc2f257c2d0f9458bab7c87d34626be3
Parent:        5bbe68cf15b00987e6644c956cf602251ac91581
Author:        Alasdair G Kergon <[email protected]>
AuthorDate:    Thu Jan 11 22:19:41 2018 +0000
Committer:     Alasdair G Kergon <[email protected]>
CommitterDate: Fri Jan 12 00:42:53 2018 +0000

libdm: Fix a size_t in _dm_malloc_aligned_aux message.

---
 libdm/mm/dbg_malloc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
libdm/mm/dbg_malloc.c +1 -1
index f108e7b..280213b 100644
@@ -304,7 +304,7 @@ static void *_dm_malloc_aligned_aux(size_t s, size_t a, const char *file __attri
 	}
 
 	if ((r = posix_memalign(&memptr, a, s))) {
-		log_error("Failed to allocate %" PRIsize_t " bytes aligned to %d: %s", s, a, strerror(r));
+		log_error("Failed to allocate %" PRIsize_t " bytes aligned to %" PRIsize_t ": %s", s, a, strerror(r));
 		return 0;
 	}