summaryrefslogtreecommitdiff
path: root/util/cbfstool/fmd_parser.y
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2017-02-17 19:48:56 -0600
committerMartin Roth <martinroth@google.com>2017-06-04 18:42:07 +0200
commitaf4c0a431c24a38519815a6e44325d29f9073da7 (patch)
tree0610b106fe51a9d8f7622a7cf576f6f76aca6f9b /util/cbfstool/fmd_parser.y
parent32a618b03bc5f405b60972eec91032114cdea5a1 (diff)
ec/ene_kb3940q: correct ACPI battery data fed into ToString()
ToString() requires the input buffer data to be null-terminated, but the data returned by the EC is not, leading Windows to fail to report any battery data at all. Correct this by concatenating a null terminator (0x00) to the end of the buffer data before inputting to ToString() where needed TEST: boot Windows on google/butterfly, observe battery data reported correctly. Change-Id: I395cc7fbdf26c8cc816e47107e552c0533580fa1 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/19961 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/cbfstool/fmd_parser.y')
0 files changed, 0 insertions, 0 deletions