]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
gpt-auto-generator: improve log messages a bit
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Jan 2023 21:38:55 +0000 (22:38 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 6 Jan 2023 13:04:46 +0000 (14:04 +0100)
Fixes: #20331
src/gpt-auto-generator/gpt-auto-generator.c

index 92eef36b4ddd52453a6fdeaa8d3b33a01b6ce637..458fd054ef7a4fd34f0d1ae28847d1a21367cfb4 100644 (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);