strange problem with int64_t variables

Andrey V. Elsukov bu7cher at yandex.ru
Sun Jul 11 15:13:10 UTC 2010


On 11.07.2010 18:46, Gabor Kovesdan wrote:
> 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?

Can you show some code?

-- 
WBR, Andrey V. Elsukov

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20100711/25c918a1/signature.pgp


More information about the freebsd-hackers mailing list