From mboxrd@z Thu Jan 1 00:00:00 1970 From: Valdis.Kletnieks@vt.edu Subject: Re: [PATCH 4/9] cpuidle: Introduce .abbr (abbrevation) for cpuidle states Date: Thu, 13 Jan 2011 10:42:29 -0500 Message-ID: <13258.1294933349@localhost> References: <1294396190-23031-1-git-send-email-trenn@suse.de> <1294396190-23031-5-git-send-email-trenn@suse.de> <201101121437.51122.trenn@suse.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1294933349_5688P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Your message of "Wed, 12 Jan 2011 17:25:12 EST." Sender: linux-acpi-owner@vger.kernel.org To: Len Brown Cc: Thomas Renninger , linux-perf-users@vger.kernel.org, mingo@elte.hu, arjan@linux.intel.com, j-pihet@ti.com, linux-acpi@vger.kernel.org, linux-pm@lists.linux-foundation.org, Frederic Weisbecker , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org List-Id: linux-perf-users.vger.kernel.org --==_Exmh_1294933349_5688P Content-Type: text/plain; charset=us-ascii On Wed, 12 Jan 2011 17:25:12 EST, Len Brown said: > > But by sysfs convention a separate file must be used > > if two data are passed to userspace which is the case here. > > what two data? > > It is fine for a string to include space characters. I think Thomas is concerned that although when you actually read a /sys file, you know it's one string, that fact can get easily lost and cause issues down the road. Consider this code: foo=`cat /sys/some/file` bar=`cat /sys/other/file` baz=`cat /sys/third/file` echo $foo $bar $baz | awk '{print $2 $3}' Suddenly your output isn't what you expected... --==_Exmh_1294933349_5688P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Exmh version 2.5 07/13/2001 iD8DBQFNLx1lcC3lWbTT17ARAh+5AKDO3njvfdeLwHRolBhga5tdWk17GQCfQjna 5NRZO5tAIu4zmvbxJ2zLUe4= =B2BS -----END PGP SIGNATURE----- --==_Exmh_1294933349_5688P--