cvs commit: src/sys/sys malloc.h src/sys/kern kern_malloc.c

Tilman Linneweh tilman+2005-07-14 at arved.at
Thu Jul 14 14:47:37 GMT 2005


* Robert Watson [Thu, 14 Jul 2005 at 13:52 GMT]:
> rwatson     2005-07-14 11:52:06 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sys/sys              malloc.h 
>     sys/kern             kern_malloc.c 
>   Log:

[..]
>   While here:
>   
>   - Bump statistics width to uint64_t, and hard code using fixed-width
>     type in order to be more sure about structure layout in the stream.
>     We allocate and free a lot of memory.
>
[..]   
>| @@ -686,10 +689,10 @@ sysctl_kern_malloc(SYSCTL_HANDLER_ARGS)
>|  			temp_bytes = 0;
>|  
>|  		/*
>| -		 * XXXRW: High-waterwark is no longer easily available, so
>| -		 * we just print '-' for that column.
>| +		 * High-waterwark is no longer easily available, so we just
>| +		 * print '-' for that column.
>|  		 */
>| -		sbuf_printf(&sbuf, "%13s%6lu%6luK       -%9lu",
>| +		sbuf_printf(&sbuf, "%13s%6lu%6luK       -%9llu",
>|  		    mtp->ks_shortdesc,
>|  		    temp_allocs,
>|  		    (temp_bytes + 1023) / 1024,

This does not compile on amd64. 

/usr/src/sys/kern/kern_malloc.c: In function `sysctl_kern_malloc':
/usr/src/sys/kern/kern_malloc.c:699: warning: long long unsigned int format, uint64_t arg (arg 6)

regards
tilman


More information about the cvs-all mailing list