Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Jan 2011 17:06:33 GMT
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 188382 for review
Message-ID:  <201101311706.p0VH6XDc077276@skunkworks.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@188382?ac=10

Change 188382 by trasz@trasz_victim8 on 2011/01/31 17:05:57

	Fix build on i386.

Affected files ...

.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#72 edit
.. //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#25 edit

Differences ...

==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_container.c#72 (text+ko) ====

@@ -479,8 +479,8 @@
 	mtx_lock(&container_lock);
 	KASSERT(amount <= p->p_container->c_resources[resource],
 	    ("rusage_sub: freeing %ju of resource %d, which is more than allocated "
-	    "%ld for %s (pid %d)", amount, resource,
-	    p->p_container->c_resources[resource], p->p_comm, p->p_pid));
+	    "%jd for %s (pid %d)", amount, resource,
+	    (intmax_t)p->p_container->c_resources[resource], p->p_comm, p->p_pid));
 
 	container_alloc_resource(p->p_container, resource, -amount);
 	rusage_sub_cred_locked(p->p_ucred, resource, amount);

==== //depot/projects/soc2009/trasz_limits/sys/kern/kern_rctl.c#25 (text+ko) ====

@@ -507,7 +507,7 @@
 }
 
 static int
-str2id(const char *str, long *value)
+str2id(const char *str, id_t *value)
 {
 	char *end;
 



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