coreboot-kgpe-d16/util/inteltool
Maciej Suminski d5fb99eab6 util/inteltool: Remove duplicated error message, switch to snprintf
Passing a string containing output from strerror() to perror() causes
double error message display. It is also causing segfaults when the
error message is longer than temp_string capacity.

To fix the problems, sterror() call has been removed so the error
message is printed only once. This could be enough to avoid segfaults,
but it is a good practice to limit output size with snprintf().

Change-Id: I5ccc37e404f278cafae0a451c5acaa27d7907cce
Signed-off-by: Maciej Suminski <maciej.suminski@cern.ch>
Reviewed-on: https://review.coreboot.org/21025
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2017-08-22 10:10:34 +00:00
..
Makefile inteltool/Makefile: Clean .dependencies too 2017-06-14 12:54:40 +02:00
ahci.c inteltool/ahci: Don't print reserved, all-zero registers 2017-06-06 17:34:57 +02:00
amb.c util/inteltool: fix memory leak 2016-07-31 19:16:45 +02:00
cpu.c util/inteltool: Remove duplicated error message, switch to snprintf 2017-08-22 10:10:34 +00:00
gfx.c
gpio.c util/inteltool: Add support for Wildcat Point-LP Premium 2017-05-01 00:43:52 +02:00
inteltool.8 Use more secure HTTPS URLs for coreboot sites 2017-06-07 12:04:50 +02:00
inteltool.c util/inteltool: Fix a comparison between signed and unsigned integers 2017-08-20 21:45:10 +00:00
inteltool.h util/inteltool: Add support for SGX status 2017-07-28 16:21:32 +00:00
ivy_memory.c util/inteltool: Remove unnecessary whitespace 2016-10-20 20:22:05 +02:00
memory.c inteltool: Add Skylake PCI id in memory.c 2017-06-09 16:25:20 +02:00
pcie.c util/inteltool: Use tabs for indents 2016-10-20 20:21:51 +02:00
powermgt.c inteltool: Add support for Skylake PMC 2017-07-15 22:33:14 +00:00
rootcmplx.c util/inteltool: Add support for Wildcat Point-LP Premium 2017-05-01 00:43:52 +02:00
spi.c util/inteltool: Add support for Wildcat Point-LP Premium 2017-05-01 00:43:52 +02:00