From: Mike Yuan Date: Fri, 23 Jun 2023 14:52:17 +0000 (+0800) Subject: bootctl: log correct error about device_path_make_canonical() X-Git-Tag: v254-rc1~124^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d82cfcaed56f46e5678d5c3c7651c7d11daa17;p=thirdparty%2Fsystemd.git bootctl: log correct error about device_path_make_canonical() --- diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 36ca830f8a3..160cf83ce6a 100644 --- a/src/boot/bootctl.c +++ b/src/boot/bootctl.c @@ -479,7 +479,9 @@ static int run(int argc, char *argv[]) { r = device_path_make_canonical(S_IFBLK, devno, &path); if (r < 0) - return log_oom(); + return log_error_errno(r, + "Failed to format canonical device path for devno '" DEVNUM_FORMAT_STR "': %m", + DEVNUM_FORMAT_VAL(devno)); puts(path); return 0;