From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 30 21:01:41 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DF8533E1 for ; Thu, 30 Oct 2014 21:01:41 +0000 (UTC) Received: from esa-annu.net.uoguelph.ca (esa-annu.mail.uoguelph.ca [131.104.91.36]) by mx1.freebsd.org (Postfix) with ESMTP id 97355217 for ; Thu, 30 Oct 2014 21:01:41 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArEEAGimUlSDaFve/2dsb2JhbABchD6DAopgr3iXAwEJgT0BAQEBAX2ELIELAg0ZAl+IVKZPj0KUbgEBCAEBAQEBHYEsjy+DMoFUBaphiVOEFCGBd4EDAQEB X-IronPort-AV: E=Sophos;i="5.07,288,1413259200"; d="scan'208";a="164859198" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-annu.net.uoguelph.ca with ESMTP; 30 Oct 2014 17:01:16 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id 2C60CB4080 for ; Thu, 30 Oct 2014 17:01:16 -0400 (EDT) Date: Thu, 30 Oct 2014 17:01:16 -0400 (EDT) From: Rick Macklem To: Freebsd hackers list Message-ID: <439339249.2551223.1414702876172.JavaMail.root@uoguelph.ca> Subject: how to kernel printf a int64_t? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.201] X-Mailer: Zimbra 7.2.6_GA_2926 (ZimbraWebClient - FF3.0 (Win)/7.2.6_GA_2926) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 21:01:42 -0000 Hi, I feel kinda dumb asking this, but... int64_t i; printf("%qd\n", (u_quad_t)i); works but looks dorky, to put it technically;-). Is there a better way to printf() a int64_t in the kernel? Thanks for any answers, rick