aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/mtdsuper.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/mtdsuper.c')
-rw-r--r--drivers/mtd/mtdsuper.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
index 89f8e66448ab..a90bfe79916d 100644
--- a/drivers/mtd/mtdsuper.c
+++ b/drivers/mtd/mtdsuper.c
@@ -27,12 +27,12 @@ static int get_sb_mtd_compare(struct super_block *sb, void *_mtd)
27 struct mtd_info *mtd = _mtd; 27 struct mtd_info *mtd = _mtd;
28 28
29 if (sb->s_mtd == mtd) { 29 if (sb->s_mtd == mtd) {
30 DEBUG(2, "MTDSB: Match on device %d (\"%s\")\n", 30 pr_debug("MTDSB: Match on device %d (\"%s\")\n",
31 mtd->index, mtd->name); 31 mtd->index, mtd->name);
32 return 1; 32 return 1;
33 } 33 }
34 34
35 DEBUG(2, "MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n", 35 pr_debug("MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n",
36 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); 36 sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name);
37 return 0; 37 return 0;
38} 38}
@@ -71,7 +71,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags,
71 goto already_mounted; 71 goto already_mounted;
72 72
73 /* fresh new superblock */ 73 /* fresh new superblock */
74 DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n", 74 pr_debug("MTDSB: New superblock for device %d (\"%s\")\n",
75 mtd->index, mtd->name); 75 mtd->index, mtd->name);
76 76
77 sb->s_flags = flags; 77 sb->s_flags = flags;
@@ -88,7 +88,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags,
88 88
89 /* new mountpoint for an already mounted superblock */ 89 /* new mountpoint for an already mounted superblock */
90already_mounted: 90already_mounted:
91 DEBUG(1, "MTDSB: Device %d (\"%s\") is already mounted\n", 91 pr_debug("MTDSB: Device %d (\"%s\") is already mounted\n",
92 mtd->index, mtd->name); 92 mtd->index, mtd->name);
93 put_mtd_device(mtd); 93 put_mtd_device(mtd);
94 return dget(sb->s_root); 94 return dget(sb->s_root);
@@ -109,7 +109,7 @@ static struct dentry *mount_mtd_nr(struct file_system_type *fs_type, int flags,
109 109
110 mtd = get_mtd_device(NULL, mtdnr); 110 mtd = get_mtd_device(NULL, mtdnr);
111 if (IS_ERR(mtd)) { 111 if (IS_ERR(mtd)) {
112 DEBUG(0, "MTDSB: Device #%u doesn't appear to exist\n", mtdnr); 112 pr_debug("MTDSB: Device #%u doesn't appear to exist\n", mtdnr);
113 return ERR_CAST(mtd); 113 return ERR_CAST(mtd);
114 } 114 }
115 115
@@ -132,7 +132,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags,
132 if (!dev_name) 132 if (!dev_name)
133 return ERR_PTR(-EINVAL); 133 return ERR_PTR(-EINVAL);
134 134
135 DEBUG(2, "MTDSB: dev_name \"%s\"\n", dev_name); 135 pr_debug("MTDSB: dev_name \"%s\"\n", dev_name);
136 136
137 /* the preferred way of mounting in future; especially when 137 /* the preferred way of mounting in future; especially when
138 * CONFIG_BLOCK=n - we specify the underlying MTD device by number or 138 * CONFIG_BLOCK=n - we specify the underlying MTD device by number or
@@ -143,7 +143,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags,
143 struct mtd_info *mtd; 143 struct mtd_info *mtd;
144 144
145 /* mount by MTD device name */ 145 /* mount by MTD device name */
146 DEBUG(1, "MTDSB: mtd:%%s, name \"%s\"\n", 146 pr_debug("MTDSB: mtd:%%s, name \"%s\"\n",
147 dev_name + 4); 147 dev_name + 4);
148 148
149 mtd = get_mtd_device_nm(dev_name + 4); 149 mtd = get_mtd_device_nm(dev_name + 4);
@@ -164,7 +164,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags,
164 mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); 164 mtdnr = simple_strtoul(dev_name + 3, &endptr, 0);
165 if (!*endptr) { 165 if (!*endptr) {
166 /* It was a valid number */ 166 /* It was a valid number */
167 DEBUG(1, "MTDSB: mtd%%d, mtdnr %d\n", 167 pr_debug("MTDSB: mtd%%d, mtdnr %d\n",
168 mtdnr); 168 mtdnr);
169 return mount_mtd_nr(fs_type, flags, 169 return mount_mtd_nr(fs_type, flags,
170 dev_name, data, 170 dev_name, data,
@@ -180,10 +180,10 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags,
180 bdev = lookup_bdev(dev_name); 180 bdev = lookup_bdev(dev_name);
181 if (IS_ERR(bdev)) { 181 if (IS_ERR(bdev)) {
182 ret = PTR_ERR(bdev); 182 ret = PTR_ERR(bdev);
183 DEBUG(1, "MTDSB: lookup_bdev() returned %d\n", ret); 183 pr_debug("MTDSB: lookup_bdev() returned %d\n", ret);
184 return ERR_PTR(ret); 184 return ERR_PTR(ret);
185 } 185 }
186 DEBUG(1, "MTDSB: lookup_bdev() returned 0\n"); 186 pr_debug("MTDSB: lookup_bdev() returned 0\n");
187 187
188 ret = -EINVAL; 188 ret = -EINVAL;
189 189