Re: [coreutils] [PATCH] sort: fix --debug display with very large offset
From:
Paul Eggert
Subject:
Re: [coreutils] [PATCH] sort: fix --debug display with very large offsets
Date:
Tue, 27 Jul 2010 15:48:28 -0700
User-agent:
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.10) Gecko/20100527 Thunderbird/3.0.5
On 07/27/10 13:29, Eric Blake wrote:
> I'd rather see something along the lines of:
>
> while (INT_MAX < offset)
> {
> printf ("%*s", INT_MAX, "");
> offset -= INT_MAX;
> }
> printf ("%*s", (int) offset), "");
That'd be fine too. It's only used during debugging,
and there is a similar loop with putchar ('_') that can't so easily
be replaced, which is why I didn't bother.