[coreboot-gerrit] Patch merged into coreboot/master: ec/chromeec: Correct ACPI battery data fed into ToString()

gerrit at coreboot.org gerrit at coreboot.org
Thu Dec 15 14:09:27 CET 2016


the following patch was just integrated into master:
commit e34c16f9157c0438e2ff42cd3b139397d3a7be24
Author: Matt DeVillier <matt.devillier at gmail.com>
Date:   Fri Dec 9 18:09:12 2016 -0600

    ec/chromeec: 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().
    
    Change-Id: I4fdbf97e9b75030374dffc99a954dd9faa6a5209
    Signed-off-by: Matt DeVillier <matt.devillier at gmail.com>
    Reviewed-on: https://review.coreboot.org/17782
    Tested-by: build bot (Jenkins)
    Reviewed-by: Martin Roth <martinroth at google.com>
    Reviewed-by: Paul Menzel <paulepanter at users.sourceforge.net>


See https://review.coreboot.org/17782 for details.

-gerrit



More information about the coreboot-gerrit mailing list