From: Lennart Poettering Date: Thu, 5 Jan 2023 21:38:55 +0000 (+0100) Subject: gpt-auto-generator: improve log messages a bit X-Git-Tag: v253-rc1~174 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2d935bbd22daf851cfb684812bb9056ea3538e5c;p=thirdparty%2Fsystemd.git gpt-auto-generator: improve log messages a bit Fixes: #20331 --- diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index 92eef36b4dd..458fd054ef7 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -683,11 +683,11 @@ static int enumerate_partitions(dev_t devnum) { * we don't actually mount anything immediately. */ &m); if (r == -ENOPKG) { - log_debug_errno(r, "No suitable partition table found, ignoring."); + log_debug_errno(r, "No suitable partition table found on block device %s, ignoring.", devname); return 0; } if (r < 0) - return log_error_errno(r, "Failed to dissect: %m"); + return log_error_errno(r, "Failed to dissect partition table of block device %s: %m", devname); if (m->partitions[PARTITION_SWAP].found) { k = add_partition_swap(m->partitions + PARTITION_SWAP);