Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2011 08:54:35 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224755 - stable/8/usr.bin/ipcs
Message-ID:  <201108100854.p7A8sZlL033395@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Wed Aug 10 08:54:35 2011
New Revision: 224755
URL: http://svn.freebsd.org/changeset/base/224755

Log:
  MFC r223925:
  
  Use %zu when printing size_t.

Modified:
  stable/8/usr.bin/ipcs/ipc.c
Directory Properties:
  stable/8/usr.bin/ipcs/   (props changed)

Modified: stable/8/usr.bin/ipcs/ipc.c
==============================================================================
--- stable/8/usr.bin/ipcs/ipc.c	Wed Aug 10 08:53:33 2011	(r224754)
+++ stable/8/usr.bin/ipcs/ipc.c	Wed Aug 10 08:54:35 2011	(r224755)
@@ -120,7 +120,7 @@ sysctlgatherstruct(void *addr, size_t si
 		if (rv == -1)
 			err(1, "sysctlbyname: %s", xp->sysctl);
 		if (tsiz != xp->size)
-			errx(1, "%s size mismatch (expected %d, got %d)",
+			errx(1, "%s size mismatch (expected %zu, got %zu)",
 			    xp->sysctl, xp->size, tsiz);
 	}
 }
@@ -199,7 +199,7 @@ kget(int idx, void *addr, size_t size)
 				err(1, "sysctlbyname: %s", sym2sysctl[idx]);
 			if (tsiz != size)
 				errx(1, "%s size mismatch "
-				    "(expected %d, got %d)",
+				    "(expected %zu, got %zu)",
 				    sym2sysctl[idx], size, tsiz);
 			break;
 		}



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