From owner-freebsd-hackers Wed Sep 29 18:40:48 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from nomis.simon-shapiro.org (nomis.simon-shapiro.org [209.86.126.163]) by hub.freebsd.org (Postfix) with SMTP id 0B9B614E0B for ; Wed, 29 Sep 1999 18:40:35 -0700 (PDT) (envelope-from shimon@simon-shapiro.org) Received: (qmail 23079 invoked from network); 30 Sep 1999 01:40:31 -0000 Received: from localhost.simon-shapiro.org (HELO simon-shapiro.org) (127.0.0.1) by localhost.simon-shapiro.org with SMTP; 30 Sep 1999 01:40:31 -0000 Message-ID: <37F2BF8F.820F951F@simon-shapiro.org> Date: Wed, 29 Sep 1999 21:40:31 -0400 From: Simon Shapiro as Himself Organization: Simon's Garage X-Mailer: Mozilla 4.6 [en] (X11; I; FreeBSD 3.3-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Kernel Printf and unsigned long long Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------msE89C93D0ADBE9950375779B8" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a cryptographically signed message in MIME format. --------------msE89C93D0ADBE9950375779B8 Content-Type: text/plain; charset= Content-Transfer-Encoding: 7bit Well, assume u_int64_t foo = ~0; printf("Foo is equal %qx\n", produces Foo is equal %qx And printf("Foo is equal %x\n"); produces: ../../i2o/i2o_drv.c:1260: warning: unsigned int format, different type arg (arg 4) You are damned if you do and damned if you don't :-) What is the official correct way to handle this? RELENG_3, i386 CURRENT Alpha -- Sincerely Yours, Shimon@Simon-Shapiro.ORG 404.644.6401 Simon Shapiro Unwritten code has no bugs and executes at twice the speed of mouth --------------msE89C93D0ADBE9950375779B8 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIJ7QYJKoZIhvcNAQcCoIIJ3jCCCdoCAQExCzAJBgU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ETAPMA0GCCqGSIb3DQMCAgEoMCMG CSqGSIb3DQEJBDEWBBTw7cZqEyJ9wjbMmL/UKEEp5JchEzANBgkqhkiG9w0BAQEFAARAcFNe Mst7fILuoSJancyYKc5+5jGyviO9T4C6F1qie890/e4e4oCHyESrvej62oy6xbOMg3qPpJ8C 1J6W0OItsA== --------------msE89C93D0ADBE9950375779B8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message