summaryrefslogtreecommitdiffstats
path: root/src/dissect/dissect.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-19 18:54:29 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-19 18:54:29 +0200
commit63cf2d75d680848bbd2ab037247a8737a1c2461f (patch)
tree60b0585496387d4dc4befc1498449913320234ef /src/dissect/dissect.c
parentcoredump: include error cause in log message (diff)
downloadsystemd-63cf2d75d680848bbd2ab037247a8737a1c2461f.tar.xz
systemd-63cf2d75d680848bbd2ab037247a8737a1c2461f.zip
dissect: include error cause in log message
Diffstat (limited to 'src/dissect/dissect.c')
-rw-r--r--src/dissect/dissect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c
index 0adeee6691..86fa84337b 100644
--- a/src/dissect/dissect.c
+++ b/src/dissect/dissect.c
@@ -106,7 +106,7 @@ static int parse_argv(int argc, char *argv[]) {
r = unhexmem(optarg, strlen(optarg), &p, &l);
if (r < 0)
- return log_error_errno(r, "Failed to parse root hash: %s", optarg);
+ return log_error_errno(r, "Failed to parse root hash '%s': %m", optarg);
if (l < sizeof(sd_id128_t)) {
log_error("Root hash must be at least 128bit long: %s", optarg);
free(p);