X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Sat, 10 Sep 2011 12:17:37 -0400 Message-Id: <201109101617.p8AGHbbj002055@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (message from Mok-Kong Shen on Sat, 10 Sep 2011 15:37:09 +0200) Subject: Re: A printf problem? References: Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > { unsigned long int g; > > g=0xcc22; printf("first: %8x %10lu\n",g,g); Try using %8lx here.