[Trac #964] Null bytes appear in /sys/devices/platform/olpc-battery.0/ kernel interface files
Zarro Boogs per Child
bugtracker at laptop.org
Fri Mar 2 09:45:25 EST 2007
#964: Null bytes appear in /sys/devices/platform/olpc-battery.0/ kernel interface
files
--------------------+-------------------------------------------------------
Reporter: gnu | Owner: marcelo
Type: defect | Status: new
Priority: normal | Milestone: Untriaged
Component: kernel | Keywords:
--------------------+-------------------------------------------------------
Reading many files such as /sys/devices/platform/olpc-
battery.0/psu_0/capacity_percentage returns the expected value, a newline
character, and then an unexpected NULL (0x0) character.
{{{
[olpc at localhost /]$ od -c /sys/class/battery/psu_0/capacity_percentage
00000000 9 3 \n \0
00000004
}}}
(/sys/class/battery is a symlink to the above...)
--
Ticket URL: <http://dev.laptop.org/ticket/964>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list