Date: Thu, 30 Oct 2014 22:09:58 -0700 From: Tim Kientzle <tim@kientzle.com> To: Rick Macklem <rmacklem@uoguelph.ca> Cc: Freebsd hackers list <freebsd-hackers@freebsd.org> Subject: Re: how to kernel printf a int64_t? Message-ID: <97A82163-E78D-457E-B649-B243B41A6C6F@kientzle.com> In-Reply-To: <439339249.2551223.1414702876172.JavaMail.root@uoguelph.ca> References: <439339249.2551223.1414702876172.JavaMail.root@uoguelph.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
On Oct 30, 2014, at 2:01 PM, Rick Macklem <rmacklem@uoguelph.ca> wrote: > Hi, >=20 > I feel kinda dumb asking this, but... > int64_t i; >=20 > printf("%qd\n", (u_quad_t)i); >=20 > works but looks dorky, to put it technically;-). > Is there a better way to printf() a int64_t in the kernel? I often use the following to print large integers: printf(=93%jd\n=94, (intmax_t)i); Tim
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?97A82163-E78D-457E-B649-B243B41A6C6F>