diff options
author | Andrew Jeffery <andrew@aj.id.au> | 2017-04-24 12:34:56 +0930 |
---|---|---|
committer | Andrew Jeffery <andrew@aj.id.au> | 2017-04-26 07:44:39 +0000 |
commit | 093d65adc9d1481cd31159da20a6c338aae66214 (patch) | |
tree | 599effa0905c09c1eea153eb48ddcffadede02f9 /mboxd_lpc.c | |
parent | 4f88bfbd3e8ccb67b12b2e02cf7952d63c3ce4e2 (diff) | |
download | phosphor-mboxd-093d65adc9d1481cd31159da20a6c338aae66214.tar.gz phosphor-mboxd-093d65adc9d1481cd31159da20a6c338aae66214.zip |
mboxd_lpc: Make subjective improvements to log messages
The bikeshed is red.
Change-Id: Ibb99da24cc20436d0fc0c5028270fecb04a10d23
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Diffstat (limited to 'mboxd_lpc.c')
-rw-r--r-- | mboxd_lpc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mboxd_lpc.c b/mboxd_lpc.c index 472f4df..c8f69b6 100644 --- a/mboxd_lpc.c +++ b/mboxd_lpc.c @@ -84,12 +84,11 @@ int __init_lpc_dev(struct mbox_context *context, const char *path) context->lpc_base = 0x0FFFFFFF & -context->mem_size; /* mmap the Reserved Memory Region */ - MSG_OUT("Mapping %s for %u\n", path, context->mem_size); + MSG_OUT("Mapping in %u bytes of %s\n", context->mem_size, path); context->mem = mmap(NULL, context->mem_size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); if (context->mem == MAP_FAILED) { - MSG_ERR("Didn't manage to mmap %s: %s\n", LPC_CTRL_PATH, - strerror(errno)); + MSG_ERR("Failed to map %s: %s\n", path, strerror(errno)); return -errno; } |