From: SF Markus Elfring Date: Fri, 21 Oct 2016 09:00:22 +0000 Subject: Re: [PATCH] Hexagon-setup: Combine four seq_printf() calls into one call in show_cpuinfo() Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Julia Lawall Cc: linux-hexagon@vger.kernel.org, Richard Kuo , LKML , kernel-janitors@vger.kernel.org >> +++ b/arch/hexagon/kernel/setup.c >> @@ -132,13 +132,14 @@ static int show_cpuinfo(struct seq_file *m, void *v) >> if (!cpu_online(cpu)) >> return 0; >> #endif >> - >> - seq_printf(m, "processor\t: %d\n", cpu); >> - seq_printf(m, "model name\t: Hexagon Virtual Machine\n"); >> - seq_printf(m, "BogoMips\t: %lu.%02lu\n", >> - (loops_per_jiffy * HZ) / 500000, >> - ((loops_per_jiffy * HZ) / 5000) % 100); >> - seq_printf(m, "\n"); >> + seq_printf(m, >> + "processor\t: %d\n" >> + "model name\t: Hexagon Virtual Machine\n" >> + "BogoMips\t: %lu.%02lu\n" >> + "\n", >> + cpu, >> + (loops_per_jiffy * HZ) / 500000, >> + ((loops_per_jiffy * HZ) / 5000) % 100); > > This looks completely pointless. Thanks for your software development opinion in this use case. > It is harder to see how the arguments fit into the strings > and it is harder to see where the strings end and the arguments begin. Is it really so difficult to interpret the suggested construction of a single (and relatively small) format string? Regards, Markus