summaryrefslogtreecommitdiffstats
path: root/src/gpt-auto-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-05 22:38:55 +0100
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-06 14:04:46 +0100
commit2d935bbd22daf851cfb684812bb9056ea3538e5c (patch)
tree2c4102542e70d3aab0d0ed5ad8a523363af61adb /src/gpt-auto-generator
parentCODING_STYLE: fix 'better' typo (diff)
downloadsystemd-2d935bbd22daf851cfb684812bb9056ea3538e5c.tar.xz
systemd-2d935bbd22daf851cfb684812bb9056ea3538e5c.zip
gpt-auto-generator: improve log messages a bit
Fixes: #20331
Diffstat (limited to 'src/gpt-auto-generator')
-rw-r--r--src/gpt-auto-generator/gpt-auto-generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c
index 92eef36b4d..458fd054ef 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);