Message ID | 1379087210-21012-1-git-send-email-fholton@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
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. -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
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);
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(-)