summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Peers <epeers@google.com>2020-03-05 16:04:15 -0700
committerFelix Held <felix-coreboot@felixheld.de>2020-03-17 22:49:09 +0000
commitaf505671a19f8d760093ada3c1a8f6e2a62d2728 (patch)
tree0064e4582407dd6bfcadb7500be47291d1fd59fd
parent4017de0d10d4b464ec14663dfd0c8bd1cbcfba20 (diff)
downloadcoreboot-af505671a19f8d760093ada3c1a8f6e2a62d2728.tar.xz
util/amdfwtool: Fix file open error msg
Print out the name of the file that failed to open. BUG=none TEST=rerun build-board.sh with missing files BRANCH=none Signed-off-by: Eric Peers <epeers@google.com> Change-Id: Id8543f25ea827fc8764e0315434b834e65bfa7fb Reviewed-on: https://chromium-review.googlesource.com/2090667 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39598 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--util/amdfwtool/amdfwtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/amdfwtool/amdfwtool.c b/util/amdfwtool/amdfwtool.c
index 5bcc0a7d77..4f1e8ba0b7 100644
--- a/util/amdfwtool/amdfwtool.c
+++ b/util/amdfwtool/amdfwtool.c
@@ -575,7 +575,8 @@ static ssize_t copy_blob(void *dest, const char *src_file, size_t room)
fd = open(src_file, O_RDONLY);
if (fd < 0) {
- printf("Error: %s\n", strerror(errno));
+ printf("Error opening file: %s: %s\n",
+ src_file, strerror(errno));
return -1;
}