From 93d82cfcaed56f46e5678d5c3c7651c7d11daa17 Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Fri, 23 Jun 2023 22:52:17 +0800 Subject: [PATCH] bootctl: log correct error about device_path_make_canonical() --- src/boot/bootctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/boot/bootctl.c b/src/boot/bootctl.c index 36ca830f8a..160cf83ce6 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;