[parted-devel] avoid printf, when easy to do

Otavio Salvador otavio at debian.org
Wed Mar 7 21:01:33 CET 2007


Jim Meyering <jim at meyering.net> writes:

> Otavio Salvador <otavio at debian.org> wrote:
>
>> "Debarshi 'Rishi' Ray" <debarshi.ray at gmail.com> writes:
>>
>>> Some more printf-like functions replaced by fputs, puts and putchar. I
>>> have tried to avoid any re-formatting than what was absolutely
>>> necessary to preserve the formatting of the code after making the
>>> changes.
>>>
>>> Comments?
>>
>> Some comments.
>>
>>> --- a/libparted/fs/ext2/ext2_inode_relocator.c
>>> +++ b/libparted/fs/ext2/ext2_inode_relocator.c
>>> @@ -309,7 +309,7 @@ static int doscan(struct ext2_fs *fs, struct ext2_inode_relocator_state *state)
>>>  		}
>>>
>>>  	if (fs->opt_verbose)
>>> -		fprintf(stderr, "\n");
>>> +                fputc ('\n', stderr);
>>
>> I don't know if we should or not also change the indentation on the
>> changed lines. I'm ok with it but I would like to hear from the others
>> too.
>>
>> There're a lot of indentation changes on the patch.
>
> I noticed, but didn't say anything about this or other recent patches
> on the presumption that we'll have to do some global reformatting
> eventually anyhow.  The current situation is untenable.

Yes, I agree that we need to make it global but the problem is when we
should enforce it. David?

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list