From: Yu Watanabe Date: Fri, 19 Oct 2018 16:54:29 +0000 (+0900) Subject: dissect: include error cause in log message X-Git-Tag: v240~503^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63cf2d75d680848bbd2ab037247a8737a1c2461f;p=thirdparty%2Fsystemd.git dissect: include error cause in log message --- diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 0adeee6691f..86fa84337bf 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);