Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Apr 2009 07:24:31 GMT
From:      Marko Zec <zec@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 161016 for review
Message-ID:  <200904240724.n3O7OVV5003893@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=161016

Change 161016 by zec@zec_tpx32 on 2009/04/24 07:23:39

	s/vmi_struct_size/vmi_size/ - still always hidden by
	#ifdef VIMAGE which is not yet a valid compile-time option.

Affected files ...

.. //depot/projects/vimage-commit/src/sys/kern/kern_vimage.c#8 edit

Differences ...

==== //depot/projects/vimage-commit/src/sys/kern/kern_vimage.c#8 (text+ko) ====

@@ -185,8 +185,8 @@
 		printf("/%s", vml->vml_iname);
 	printf(": ");
 #ifdef VIMAGE
-	if (vmi->vmi_struct_size)
-		printf("malloc(%zu); ", vmi->vmi_struct_size);
+	if (vmi->vmi_size)
+		printf("malloc(%zu); ", vmi->vmi_size);
 #endif
 	if (vmi->vmi_iattach != NULL)
 		printf("iattach()");
@@ -194,7 +194,7 @@
 #endif
 
 #ifdef VIMAGE
-	if (vmi->vmi_struct_size) {
+	if (vmi->vmi_size) {
 		void *mem = malloc(vmi->vmi_size, M_VNET,
 		    M_NOWAIT | M_ZERO);
 		if (mem == NULL) /* XXX should return error, not panic. */



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