svn commit: r303105 - head/sys/kern

Conrad E. Meyer cem at FreeBSD.org
Wed Jul 20 18:11:23 UTC 2016


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));


More information about the svn-src-head mailing list