Path: chuka.playstation.co.uk!news From: Andrew Partington Newsgroups: scee.yaroze.freetalk.english Subject: Re: printf misses some data Date: Mon, 18 Feb 2002 10:32:07 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 44 Message-ID: <3C70D827.DEABCAFE@peregrine.com> References: <01c1b80a$054869a0$3371933e@pal-s-omnibook> NNTP-Posting-Host: 194.207.193.83 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en Hi Pal I seem to remember reading somewhere that there is some issue with sending data back to the PC when using a port speed of 115200 bps (can't remember if it's a yaroze hardware issue or not). Try dropping your port speed to 57600 bps [hope you haven't got too much data to upload ;)] Hope this helps Andy "Jon Prestidge (Jon@surfed.to)" wrote: > > I don't know of a flush buffer routine..... but you could force a buffer > flush in a really naff way by printing a load of Xs or some other text. > But the buffer probably isn't the problem because I would have thought it > would print the whole string if it's printed any at-all. > > Try using SIOCONS if you're using PSComUtil or visa-versa. > > I've had problems with printfs in the past....and the only thing that seemed > to solve the problem was reducing the amount of text in printf statements > through-out my program (even, and especially, printfs that don't get > executed). > > Jon > > pal wrote in message > news:01c1b80a$054869a0$3371933e@pal-s-omnibook... > > I'm using printf to record a lot of debug info, and it appears that once > in > > a while (very rarely but enough to really annoy me), a chunk of data isn't > > received by my pc. Eg "printf("%X",i)" may print just "12" when i is > > actually 123! > > > > I made my data as small as possible but this still happens. Any help, > > hints, workarounds, thoughts? Is there some sort of fflush available (i > > couldn't find it)? > > > > pal > >