diff mbox series

[4/5] block: Improve efi partition debug messages

Message ID 20230808135702.628588-5-dlemoal@kernel.org (mailing list archive)
State New, archived
Headers show
Series Some minor cleanups | expand

Commit Message

Damien Le Moal Aug. 8, 2023, 1:57 p.m. UTC
Add the missing definition of pr_fmt to prefix the debug messages from
partitions/efi.c with "partition: efi: ".

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
 block/partitions/efi.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

Chaitanya Kulkarni Aug. 9, 2023, 2:07 a.m. UTC | #1
On 8/8/2023 6:57 AM, Damien Le Moal wrote:
> Add the missing definition of pr_fmt to prefix the debug messages from
> partitions/efi.c with "partition: efi: ".
> 
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---

Same as previous comment ...

Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>

-ck
Hannes Reinecke Aug. 9, 2023, 6:09 a.m. UTC | #2
On 8/8/23 15:57, Damien Le Moal wrote:
> Add the missing definition of pr_fmt to prefix the debug messages from
> partitions/efi.c with "partition: efi: ".
> 
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
>   block/partitions/efi.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
Johannes Thumshirn Aug. 15, 2023, 10:03 a.m. UTC | #3
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
diff mbox series

Patch

diff --git a/block/partitions/efi.c b/block/partitions/efi.c
index 5e9be13a56a8..33fe70282e38 100644
--- a/block/partitions/efi.c
+++ b/block/partitions/efi.c
@@ -90,6 +90,9 @@ 
 #include "check.h"
 #include "efi.h"
 
+#undef pr_fmt
+#define pr_fmt(fmt) "partition: efi: " fmt
+
 /* This allows a kernel command line option 'gpt' to override
  * the test for invalid PMBR.  Not __initdata because reloading
  * the partition tables happens after init too.