Re: [PATCH] init: calibrate: fix style issues

From: Rasmus Wriedt Larsen
Date: Sat Oct 11 2014 - 13:24:05 EST


On 11/10/14 18:40, Joe Perches wrote:
> On Sat, 2014-10-11 at 18:31 +0200, Rasmus Wriedt Larsen wrote:
>> * fix multiple quoted string split across lines style issues
>> * change printk(KERN_NOTICE to pr_notice
>> * insert spaces after , in function call
> []
>> diff --git a/init/calibrate.c b/init/calibrate.c
> []
>> @@ -160,9 +158,7 @@ static unsigned long calibrate_delay_direct(void)
>>
>> }
>>
>> - printk(KERN_NOTICE "calibrate_delay_direct() failed to get a good "
>> - "estimate for loops_per_jiffy.\nProbably due to long platform "
>> - "interrupts. Consider using \"lpj=\" boot option.\n");
>> + pr_notice("calibrate_delay_direct() failed to get a good estimate for loops_per_jiffy.\nProbably due to long platform interrupts. Consider using \"lpj=\" boot option.\n");
>
> This would be better on 2 lines:
> pr_notice("calibrate_delay_direct() failed to get a good estimate for loops_per_jiffy.\n"
> "Probably due to long platform interrupts. Consider using \"lpj=\" boot option.\n");

Yes, indeed it would. (will fix in upcoming patch)

> The grammar is poor though and this
> could be better phrased.

Any suggestions? I don't see anything in particular (but English is not my
native language either)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/