public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] btrfs: Add btrfs: prefix to kernel log output
@ 2013-09-13 15:46 Frank Holton
  2013-09-13 16:19 ` David Sterba
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Holton @ 2013-09-13 15:46 UTC (permalink / raw)
  To: linux-btrfs; +Cc: Frank Holton

The kernel log entries for device label %s and device fsid %pU
are missing the btrfs: prefix. Add those here.

Signed-off-by: Frank Holton <fholton@gmail.com>
---
 fs/btrfs/volumes.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index a057735..0431147 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -912,9 +912,9 @@ int btrfs_scan_one_device(const char *path, fmode_t flags, void *holder,
 	if (disk_super->label[0]) {
 		if (disk_super->label[BTRFS_LABEL_SIZE - 1])
 			disk_super->label[BTRFS_LABEL_SIZE - 1] = '\0';
-		printk(KERN_INFO "device label %s ", disk_super->label);
+		printk(KERN_INFO "btrfs: device label %s ", disk_super->label);
 	} else {
-		printk(KERN_INFO "device fsid %pU ", disk_super->fsid);
+		printk(KERN_INFO "btrfs: device fsid %pU ", disk_super->fsid);
 	}
 
 	printk(KERN_CONT "devid %llu transid %llu %s\n", devid, transid, path);
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] btrfs: Add btrfs: prefix to kernel log output
  2013-09-13 15:46 [PATCH] btrfs: Add btrfs: prefix to kernel log output Frank Holton
@ 2013-09-13 16:19 ` David Sterba
  0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2013-09-13 16:19 UTC (permalink / raw)
  To: Frank Holton; +Cc: linux-btrfs

On Fri, Sep 13, 2013 at 11:46:50AM -0400, Frank Holton wrote:
> The kernel log entries for device label %s and device fsid %pU
> are missing the btrfs: prefix. Add those here.
> 
> Signed-off-by: Frank Holton <fholton@gmail.com>
Reviewed-by: David Sterba <dsterba@suse.cz>

> -		printk(KERN_INFO "device label %s ", disk_super->label);
> +		printk(KERN_INFO "btrfs: device label %s ", disk_super->label);

We can't use btrfs_info directly in this context, it wants a fs_info
pointer. Although btrfs_info calls to btrfs_printk that actually uses
fs_info only to get the superblock, this is not available at all
callsites either.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-09-13 16:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-13 15:46 [PATCH] btrfs: Add btrfs: prefix to kernel log output Frank Holton
2013-09-13 16:19 ` David Sterba

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox