switch-coreboot/src
Matt DeVillier 16faa4cf0b UPSTREAM: 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().

BUG=None
BRANCH=None
TEST=None

Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/17782
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>

Change-Id: I4fdbf97e9b75030374dffc99a954dd9faa6a5209
Reviewed-on: https://chromium-review.googlesource.com/420844
Commit-Ready: Furquan Shaikh <furquan@chromium.org>
Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-by: Furquan Shaikh <furquan@chromium.org>
2016-12-16 04:51:12 -08:00
..
acpi UPSTREAM: src/acpi: Capitalize ACPI and SATA 2016-08-04 23:37:57 -07:00
arch UPSTREAM: ACPI S3: Hide acpi_slp_type 2016-12-13 17:49:14 -08:00
commonlib UPSTREAM: buildsystem: Drop explicit (k)config.h includes 2016-12-09 03:29:54 -08:00
console UPSTREAM: console/vtxprintf.c: cast precision to size_t for string length 2016-11-29 17:38:21 -08:00
cpu UPSTREAM: ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-13 17:49:16 -08:00
device UPSTREAM: buildsystem: Drop explicit (k)config.h includes 2016-12-09 03:29:54 -08:00
drivers UPSTREAM: soc/intel/common: remove mrc cache assumptions 2016-12-16 04:51:10 -08:00
ec UPSTREAM: ec/chromeec: Correct ACPI battery data fed into ToString() 2016-12-16 04:51:12 -08:00
include UPSTREAM: pc80: Move set_boot_successful() 2016-12-16 01:49:05 -08:00
lib UPSTREAM: lib/spd_bin: Check return code & remove dead code 2016-12-16 04:51:02 -08:00
mainboard UPSTREAM: google/eve: Configure I2C3 pins as GPIO inputs 2016-12-16 04:50:45 -08:00
northbridge UPSTREAM: nb/intel/gm45: Use lapic udelay in SMM 2016-12-13 17:49:50 -08:00
soc UPSTREAM: soc/intel/common: remove mrc cache assumptions 2016-12-16 04:51:10 -08:00
southbridge UPSTREAM: intel/i945: Use romstage_handoff for S3 2016-12-13 17:49:07 -08:00
superio UPSTREAM: sio/ite/it8783ef: Return (0) in ACPI _PSC methods 2016-12-16 04:50:43 -08:00
vboot UPSTREAM: commonlib/include: remove NEED_VB20_INTERNALS 2016-11-21 11:53:31 -08:00
vendorcode UPSTREAM: vendorcode/amd: drop dead code 2016-12-16 04:50:55 -08:00
Kconfig UPSTREAM: ACPI S3: Flip ACPI_HUGE_LOWMEM_BACKUP default 2016-12-13 17:49:16 -08:00