From: Arnd Hannemann Date: Sun, 20 Nov 2011 12:33:38 +0000 (-0500) Subject: Btrfs: prefix resize related printks with btrfs: X-Git-Tag: v2.6.39-400.9.0~824^2~35 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c80210cc4ca74a8e24e36373f1168e23f45fd93c;p=users%2Fjedix%2Flinux-maple.git Btrfs: prefix resize related printks with btrfs: For the user it is confusing to find something like: [10197.627710] new size for /dev/mapper/vg0-usr_share is 3221225472 in kernel log, because it doesn't point directly to btrfs. This patch prefixes those messages with "btrfs:" like other btrfs related printks. Signed-off-by: Arnd Hannemann Signed-off-by: Chris Mason (cherry picked from commit 5bb1468238e20b15921909e9f9601e945f03bac7) --- diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c index 657330411dfd..077d2b600433 100644 --- a/fs/btrfs/ioctl.c +++ b/fs/btrfs/ioctl.c @@ -1224,12 +1224,12 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root, *devstr = '\0'; devstr = vol_args->name; devid = simple_strtoull(devstr, &end, 10); - printk(KERN_INFO "resizing devid %llu\n", + printk(KERN_INFO "btrfs: resizing devid %llu\n", (unsigned long long)devid); } device = btrfs_find_device(root, devid, NULL, NULL); if (!device) { - printk(KERN_INFO "resizer unable to find device %llu\n", + printk(KERN_INFO "btrfs: resizer unable to find device %llu\n", (unsigned long long)devid); ret = -EINVAL; goto out_unlock; @@ -1275,7 +1275,7 @@ static noinline int btrfs_ioctl_resize(struct btrfs_root *root, do_div(new_size, root->sectorsize); new_size *= root->sectorsize; - printk(KERN_INFO "new size for %s is %llu\n", + printk(KERN_INFO "btrfs: new size for %s is %llu\n", device->name, (unsigned long long)new_size); if (new_size > old_size) {