Date: Tue, 3 Sep 2002 22:20:07 -0700 (PDT) From: Bruce Evans <bde@zeta.org.au> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/42386: cleaning code from warnings in libkvm Message-ID: <200209040520.g845K7rG070562@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/42386; it has been noted by GNATS. From: Bruce Evans <bde@zeta.org.au> To: Dan Lukes <dan@obluda.cz> Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/42386: cleaning code from warnings in libkvm Date: Wed, 4 Sep 2002 15:18:26 +1000 (EST) On Tue, 3 Sep 2002, Dan Lukes wrote: > >Description: > ... > lib/libkvm/kvm_getswapinfo.c: > 267: warning: unsigned int format, different type arg (arg 5) > int format, different type arg (arg 6) > #>> blk & radix are daddr_t = int64_t = __int64_t = long long 'long long' should never be used. intmax_t should normally be used instead. daddr_t is plain long on alphas, so printing it using %lld format fixes the bug but not the warning. Similar problems for printing virtual addresses are avoided by using a basic type (usually u_long) instead of the correct typedefed type (vm_offset_t). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209040520.g845K7rG070562>