From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5983 invoked by alias); 5 Oct 2008 19:41:44 -0000 Received: (qmail 5975 invoked by uid 22791); 5 Oct 2008 19:41:43 -0000 X-Spam-Check-By: sourceware.org Received: from mtaout7.012.net.il (HELO mtaout7.012.net.il) (84.95.2.19) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 05 Oct 2008 19:41:02 +0000 Received: from HOME-C4E4A596F7 ([77.127.3.182]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0K8A00HD56Q9LP50@i-mtaout7.012.net.il> for gdb-patches@sourceware.org; Sun, 05 Oct 2008 21:42:09 +0200 (IST) Date: Sun, 05 Oct 2008 19:41:00 -0000 From: Eli Zaretskii Subject: Re: [RFA record/replay] cast to avoid compiler warning In-reply-to: <48E906B5.8070600@vmware.com> X-012-Sender: halo1@inter.net.il To: Michael Snyder Cc: mark@klomp.org, mark.kettenis@xs4all.nl, gdb-patches@sourceware.org, teawater@gmail.com Reply-to: Eli Zaretskii Message-id: References: <48E7B927.9050207@vmware.com> <09B97D2C4B49DF409E2D018999AC6FE115B42A89C4@PA-EXMBX14.vmware.com> <20081005160411.GA29968@caradoc.them.org> <48E906B5.8070600@vmware.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00138.txt.bz2 > Date: Sun, 05 Oct 2008 11:25:57 -0700 > From: Michael Snyder > > OK. So, would you favor using the "%zd" modifier instead of a cast? What's wrong with casting to "unsigned long" and using %lu?