Re: [PATCH 1/5] fdisk: print the welcome message when OSF/1 disklabel is detected

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/11/14 Karel Zak <kzak@xxxxxxxxxx>:
>> +     fprintf(stderr, _("Welcome to fdisk (%s).\n\n"
>> +             "Changes will remain in memory only, until you decide to write them.\n"
>> +             "Be careful before using the write command.\n"), PACKAGE_STRING);
>> +
>
>  I have moved this message before gpt_warning() and get_boot(). The
>  get_boot() produces very often warnings (for example on disk with no
>  PT) and I think that the welcome message should be printed as very
>  first message in the interactive mode.

There are some side effects. The third part of the message needs more
visibility, and there is a variable number of newlines. It's possible
split the string up to fix this.

Francesco
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux