Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Jul 2016 18:11:22 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r303105 - head/sys/kern
Message-ID:  <201607201811.u6KIBMQx039075@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201607201811.u6KIBMQx039075>