From 63cf2d75d680848bbd2ab037247a8737a1c2461f Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sat, 20 Oct 2018 01:54:29 +0900 Subject: [PATCH] dissect: include error cause in log message --- src/dissect/dissect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 0adeee6..86fa843 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); -- 2.7.4