From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24125 invoked by alias); 30 Aug 2009 15:14:13 -0000 Received: (qmail 24114 invoked by uid 22791); 30 Aug 2009 15:14:12 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from qw-out-1920.google.com (HELO qw-out-1920.google.com) (74.125.92.146) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 30 Aug 2009 15:14:04 +0000 Received: by qw-out-1920.google.com with SMTP id 5so1161733qwf.24 for ; Sun, 30 Aug 2009 08:14:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.50.149 with SMTP id z21mr1224114qcf.86.1251645242104; Sun, 30 Aug 2009 08:14:02 -0700 (PDT) In-Reply-To: References: From: Jiang Jilin Date: Sun, 30 Aug 2009 15:22:00 -0000 Message-ID: <7d77a27d0908300813p78945f1cv8597e9ee675e959@mail.gmail.com> Subject: Re: [PATCH] Fix cygwin build error with i386-linux-tdep.c To: Hui Zhu Cc: gdb-patches ml , Michael Snyder Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: 2009-08/txt/msg00566.txt.bz2 On Sun, Aug 30, 2009 at 9:15 PM, Hui Zhu wrote: > Hi guys, > > =A0 if (tmpu32 > 499) > =A0 =A0 { > =A0 =A0 =A0 printf_unfiltered (_("Process record and replay target doesn'= t " > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "support syscall nu= mber %u\n"), tmpu32); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 "support syscall nu= mber %u\n"), (unsigned) tmpu32); > =A0 =A0 =A0 return -1; > =A0 =A0 } > Sorry, it's not clear to me. when looking into the code, I found the type of tmpu32 is uint32_t, why did the gcc complain "warning: unsigned int format, uint32_t arg (arg 2)"? %u doesn't mean unsigned int? --=20 Thanks Jiang