Messages in this thread | | | Subject | Re: [PATCH 4/9] cpuidle: Introduce .abbr (abbrevation) for cpuidle states | From | Valdis.Kletnieks@vt ... | Date | Thu, 13 Jan 2011 10:42:29 -0500 |
| |
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... [unhandled content-type:application/pgp-signature] | |