On Mon, 2017-05-15 at 17:02 -0400, Ewan D. Milne wrote: > I think it's the '\n' that actually causes the problem. Agreed, and that's why I proposed to strip trailing whitespace. > But, what I think we should do is use the same technique everywhere. If you have a look at the block layer you will see that the block layer sysfs code is already using strim() and strstrip(). > So, are you suggesting we change all the other sysfs store routines? I will leave it to Martin and James to comment on this. Bart.