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

Robert Watson rwatson at FreeBSD.org
Thu Jul 14 15:27:59 GMT 2005


On Thu, 14 Jul 2005, Tilman Linneweh wrote:

>> | @@ -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)

This should now be fixed.  If not, please let me know.

Thanks!

Robert N M Watson


More information about the cvs-all mailing list