strange problem with int64_t variables

Gabor Kovesdan gabor at FreeBSD.org
Sun Jul 11 14:46:14 UTC 2010


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,
Gabor


More information about the freebsd-hackers mailing list