Re: [PATCH 4/9] cpuidle: Introduce .abbr (abbrevation) for cpuidle states

From: Valdis . Kletnieks
Date: Thu Jan 13 2011 - 10:46:27 EST


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...

Attachment: pgp00000.pgp
Description: PGP signature