From mboxrd@z Thu Jan 1 00:00:00 1970 From: Srinivas Pandruvada Subject: Re: [PATCH v2 1/4] platform/x86: intel_pmc_core: Show Latency Tolerance info Date: Tue, 30 Oct 2018 11:03:24 -0700 Message-ID: <0d940313e1be7ddaa06c5ebf4aea7a4df84540f2.camel@linux.intel.com> References: <20181006065113.669-1-rajneesh.bhardwaj@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: Andy Shevchenko , rajneesh.bhardwaj@linux.intel.com Cc: Platform Driver , Darren Hart , Andy Shevchenko , Linux Kernel Mailing List , Rajneesh Bhardwaj List-Id: platform-driver-x86.vger.kernel.org [...] > > > For example, index printing. Please, remove it. I completely > > > forgot > > > about userspace powerful tools. At least two very old and nice > > > can > > > enumerate lines for you. > > > Obviously the index printing is redundant. > > > > Index printing is required here (for LTR Show and LTR Ignore) > > because it > > paves an obvious and easy way for the users of this driver to know > > the > > IP number to be used for LTR ignore. This was specifically > > requested by > > some customer and Srinivas asked me to implement this so adding him > > for > > his inputs. > > So, why it should be in kernel? When user prints this, they usually > call `cat /.../file`, right? > Is it too hard to call `cat -n /.../file` instead? The benefit of > such > approach is that it's independent on the file we are printing. > > (Note, `grep -n /.../file` does the same`) > > For more variants > https://stackoverflow.com/questions/8206370/add-numbers-to-the-beginning-of-every-line-in-a-file > We get copy/paste data from some serial terminals from systems which don't have traditional linux shell or busy box. Not sure if they can do cat "-n" option or have this command at all. So line number helps. They can't even store output as as file as this is RO file system. But I am not as sticky on this. Thanks, Srinivas