[Libguestfs] [libnbd PATCH 05/18] generator/states: wrap source code at 80 characters

Laszlo Ersek lersek at redhat.com
Wed Apr 19 06:42:29 UTC 2023


On 4/18/23 22:16, Eric Blake wrote:
> On Tue, Apr 18, 2023 at 07:26:18PM +0200, Laszlo Ersek wrote:
>> Rewrap some error messages to keep the source code width at most 80 chars.
>>
>> Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2172516
>> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
>> ---
>>  generator/states-magic.c           |  3 ++-
>>  generator/states-newstyle-opt-go.c | 12 ++++++++----
>>  2 files changed, 10 insertions(+), 5 deletions(-)
>>
>> diff --git a/generator/states-magic.c b/generator/states-magic.c
>> index b06057b5acd8..7928959ff86c 100644
>> --- a/generator/states-magic.c
>> +++ b/generator/states-magic.c
>> @@ -53,7 +53,8 @@  MAGIC.CHECK_MAGIC:
>>    }
>>    else {
>>      SET_NEXT_STATE (%.DEAD);
>> -    set_error (0, "handshake: server is not either an oldstyle or fixed newstyle NBD server");
>> +    set_error (0, "handshake: server is not either an oldstyle or fixed "
>> +               "newstyle NBD server");
> 
> The term 'fixed newstyle' has enough relevance on its own in the
> protocol that I might wrap one word earlier to keep that phrasing
> together; but I'm not opposed to your patch going in as-is.

I'll update the patch.

Thanks!
Laszlo



More information about the Libguestfs mailing list