Date: Sun, 11 Jul 2010 16:46:07 +0200 From: Gabor Kovesdan <gabor@FreeBSD.org> To: FreeBSD Hackers <hackers@freebsd.org> Subject: strange problem with int64_t variables Message-ID: <4C39D92F.4050605@FreeBSD.org>
index | next in thread | raw e-mail
Hi, I have two int64_t variables in kernel code, first is stored internally and the second one is passed from a syscall argument. When I print them with printf %lld modifier, the internal one behaves correctly but the other one I pass from a syscall has a corrupted value. If I pass 1, it prints out 3735348794091372545. I'm not doing anything special with it just reading it out from the struct that was generated with make sysent. Any ideas? Thanks, Gaborhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C39D92F.4050605>
