]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dissect: include error cause in log message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 16:54:29 +0000 (01:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 19 Oct 2018 16:54:29 +0000 (01:54 +0900)
src/dissect/dissect.c

index 0adeee6691feeff47523bc82254745238e7d5b7f..86fa84337bfbde8882b3867a32083a16b4b52a8d 100644 (file)
@@ -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);