summaryrefslogtreecommitdiffstats
path: root/mboxd_flash.c
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2017-04-24 12:34:15 +0930
committerAndrew Jeffery <andrew@aj.id.au>2017-04-26 07:44:24 +0000
commit4f88bfbd3e8ccb67b12b2e02cf7952d63c3ce4e2 (patch)
tree688fe239de0bd393c09fcfae83a31e1f4842fa9b /mboxd_flash.c
parent33640b38ae6f3e2156c48ee8a64e952d4412e0e8 (diff)
downloadphosphor-mboxd-4f88bfbd3e8ccb67b12b2e02cf7952d63c3ce4e2.tar.gz
phosphor-mboxd-4f88bfbd3e8ccb67b12b2e02cf7952d63c3ce4e2.zip
mboxd_flash: strerror() requires errno for argument
Change-Id: I68381ed74ab8b75dac195b53d61fd8ccabcf6fb1 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'mboxd_flash.c')
-rw-r--r--mboxd_flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mboxd_flash.c b/mboxd_flash.c
index a7e632a..7ef834a 100644
--- a/mboxd_flash.c
+++ b/mboxd_flash.c
@@ -147,8 +147,8 @@ int copy_flash(struct mbox_context *context, uint32_t offset, void *mem,
size_read = read(context->fds[MTD_FD].fd, mem,
min_u32(CHUNKSIZE, size));
if (size_read < 0) {
- MSG_ERR("Couldn't copy mtd into ram: %d. %s\n",
- size_read, strerror(size_read));
+ MSG_ERR("Couldn't copy mtd into ram: %s\n",
+ strerror(errno));
return -MBOX_R_SYSTEM_ERROR;
}
OpenPOWER on IntegriCloud