[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [uPATCH] nicer pause-debug bootstrap
From: |
Roland McGrath |
Subject: |
Re: [uPATCH] nicer pause-debug bootstrap |
Date: |
Sat, 25 Aug 2001 19:41:00 -0400 (EDT) |
The fflush calls should not be necessary right before getchar, because
stdio should flush all line-buffered streams. Are those printfs in fact
not getting out? Perhaps we need a setlinebuf(stdout)?
I don't really like all that hairy conditional printing. I mean, if it's a
little ugly when you're debugging, so what? But it seems to be it would be
pretty enough just by changing the "Pausing..." prompts to either prepend a
\n and maybe print another after the getchar, or by changing them
to " [hit return to run %s] " with no \n (whichever you find prettier).