Author: cem
Date: Wed Jul 20 18:11:22 2016
New Revision: 303105
URL: https://svnweb.freebsd.org/changeset/base/303105

Log:
  Fix DEBUG build on 64-bit arch after r303099
  
  Reported by:  Larry Rosenman <ler at lerctr.org>

Modified:
  head/sys/kern/imgact_elf.c

Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c  Wed Jul 20 18:02:07 2016        (r303104)
+++ head/sys/kern/imgact_elf.c  Wed Jul 20 18:11:22 2016        (r303105)
@@ -1660,7 +1660,7 @@ __elfN(puthdr)(struct thread *td, void *
                    (numsegs + 1) * ehdr->e_phentsize;
                KASSERT(ehdr->e_shoff == hdrsize - sizeof(Elf_Shdr),
                    ("e_shoff: %zu, hdrsize - shdr: %zu",
-                    ehdr->e_shoff, hdrsize - sizeof(Elf_Shdr)));
+                    (size_t)ehdr->e_shoff, hdrsize - sizeof(Elf_Shdr)));
 
                shdr = (Elf_Shdr *)((char *)hdr + ehdr->e_shoff);
                memset(shdr, 0, sizeof(*shdr));
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to