Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Jul 2010 18:57:40 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Gabor Kovesdan <gabor@FreeBSD.org>
Cc:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: strange problem with int64_t variables
Message-ID:  <4C39DBE4.5080302@yandex.ru>
In-Reply-To: <4C39D92F.4050605@FreeBSD.org>
References:  <4C39D92F.4050605@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig5281CA977818FA5568A2E588
Content-Type: text/plain; charset=KOI8-R
Content-Transfer-Encoding: quoted-printable

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=
=2E
> Any ideas?

Can you show some code?

--=20
WBR, Andrey V. Elsukov


--------------enig5281CA977818FA5568A2E588
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (FreeBSD)

iQEcBAEBAgAGBQJMOdvkAAoJEAHF6gQQyKF63HQIAKA3tw7QjekSTrWnNxp7Rfyy
rZP4unfpidMb3kCK7J1fWWlGO4NtSH7YFLs2Scq1Q6aE5aRynDo1Fbe1D80KFTDP
tWsEGgJ3wYjeKXUhymQQ//LUywPqhzMbgOKHnjOWffgLGSabP9C8XvXyemlncIKA
J+LXLrEQIPIQ7+g2HTwMqn7QElC0cEhAdHuw2ppkIwIX0ECoXTp5eRQ1QvGImJvE
oVXHiQLfMesvkKerfYGPp0Q+c1e1kzHAxgl/XIiRwDUycWO6fPtKAppUXqG9MDSN
lZgoIKyroeewVXu8q1F/q8TZTseKZBgzWFUpQZP2hmI8dEgskjnXmLh0q1GxJ78=
=58X9
-----END PGP SIGNATURE-----

--------------enig5281CA977818FA5568A2E588--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C39DBE4.5080302>