gpt-auto-generator: improve log messages a bit

Fixes: #20331
This commit is contained in:
Lennart Poettering
2023-01-05 22:38:55 +01:00
committed by Daan De Meyer
parent 4e11b54b31
commit 2d935bbd22

View File

@@ -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);