fixup printf formats with -DDEBUG

Fix -Wformat warnings for printf formats with -DDEBUG

Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
Seth Jennings 2014-03-07 12:07:56 -06:00
parent 7618f12f45
commit 159214a4fc

View File

@ -290,7 +290,7 @@ void kpatch_create_section_table(struct kpatch_elf *kelf)
ERROR("elf_getshdrstrndx");
#if DEBUG
printf("=== section list (%d) ===\n", sections_nr);
printf("=== section list (%zu) ===\n", sections_nr);
#endif
for_each_section(i, sec, &kelf->sections) {
@ -312,7 +312,7 @@ void kpatch_create_section_table(struct kpatch_elf *kelf)
sec->index = elf_ndxscn(scn);
#if DEBUG
printf("ndx %02d, data %08x, size, %08x, name %s\n",
printf("ndx %02d, data %p, size %zu, name %s\n",
sec->index, sec->data->d_buf, sec->data->d_size,
sec->name);
#endif