diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-07-19 13:06:09 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:16 -0400 |
commit | 289c05222172b51401dbbb017115655f241d94ab (patch) | |
tree | 1fd2c801102a8c4a085f75a08c766d3250491962 /drivers/mtd/mtdsuper.c | |
parent | d037021953922ebdbc34b98b8c4648017b1c6e89 (diff) |
mtd: replace DEBUG() with pr_debug()
Start moving away from the MTD_DEBUG_LEVEL messages. The dynamic
debugging feature is a generic kernel feature that provides more
flexibility.
(See Documentation/dynamic-debug-howto.txt)
Also fix some punctuation, indentation, and capitalization that went
along with the affected lines.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/mtdsuper.c')
-rw-r--r-- | drivers/mtd/mtdsuper.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c index 16b02a1fc100..80fe5dcac111 100644 --- a/drivers/mtd/mtdsuper.c +++ b/drivers/mtd/mtdsuper.c | |||
@@ -26,12 +26,12 @@ static int get_sb_mtd_compare(struct super_block *sb, void *_mtd) | |||
26 | struct mtd_info *mtd = _mtd; | 26 | struct mtd_info *mtd = _mtd; |
27 | 27 | ||
28 | if (sb->s_mtd == mtd) { | 28 | if (sb->s_mtd == mtd) { |
29 | DEBUG(2, "MTDSB: Match on device %d (\"%s\")\n", | 29 | pr_debug("MTDSB: Match on device %d (\"%s\")\n", |
30 | mtd->index, mtd->name); | 30 | mtd->index, mtd->name); |
31 | return 1; | 31 | return 1; |
32 | } | 32 | } |
33 | 33 | ||
34 | DEBUG(2, "MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n", | 34 | pr_debug("MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n", |
35 | sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); | 35 | sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); |
36 | return 0; | 36 | return 0; |
37 | } | 37 | } |
@@ -70,7 +70,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags, | |||
70 | goto already_mounted; | 70 | goto already_mounted; |
71 | 71 | ||
72 | /* fresh new superblock */ | 72 | /* fresh new superblock */ |
73 | DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n", | 73 | pr_debug("MTDSB: New superblock for device %d (\"%s\")\n", |
74 | mtd->index, mtd->name); | 74 | mtd->index, mtd->name); |
75 | 75 | ||
76 | sb->s_flags = flags; | 76 | sb->s_flags = flags; |
@@ -87,7 +87,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags, | |||
87 | 87 | ||
88 | /* new mountpoint for an already mounted superblock */ | 88 | /* new mountpoint for an already mounted superblock */ |
89 | already_mounted: | 89 | already_mounted: |
90 | DEBUG(1, "MTDSB: Device %d (\"%s\") is already mounted\n", | 90 | pr_debug("MTDSB: Device %d (\"%s\") is already mounted\n", |
91 | mtd->index, mtd->name); | 91 | mtd->index, mtd->name); |
92 | put_mtd_device(mtd); | 92 | put_mtd_device(mtd); |
93 | return dget(sb->s_root); | 93 | return dget(sb->s_root); |
@@ -108,7 +108,7 @@ static struct dentry *mount_mtd_nr(struct file_system_type *fs_type, int flags, | |||
108 | 108 | ||
109 | mtd = get_mtd_device(NULL, mtdnr); | 109 | mtd = get_mtd_device(NULL, mtdnr); |
110 | if (IS_ERR(mtd)) { | 110 | if (IS_ERR(mtd)) { |
111 | DEBUG(0, "MTDSB: Device #%u doesn't appear to exist\n", mtdnr); | 111 | pr_debug("MTDSB: Device #%u doesn't appear to exist\n", mtdnr); |
112 | return ERR_CAST(mtd); | 112 | return ERR_CAST(mtd); |
113 | } | 113 | } |
114 | 114 | ||
@@ -131,7 +131,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
131 | if (!dev_name) | 131 | if (!dev_name) |
132 | return ERR_PTR(-EINVAL); | 132 | return ERR_PTR(-EINVAL); |
133 | 133 | ||
134 | DEBUG(2, "MTDSB: dev_name \"%s\"\n", dev_name); | 134 | pr_debug("MTDSB: dev_name \"%s\"\n", dev_name); |
135 | 135 | ||
136 | /* the preferred way of mounting in future; especially when | 136 | /* the preferred way of mounting in future; especially when |
137 | * CONFIG_BLOCK=n - we specify the underlying MTD device by number or | 137 | * CONFIG_BLOCK=n - we specify the underlying MTD device by number or |
@@ -142,7 +142,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
142 | struct mtd_info *mtd; | 142 | struct mtd_info *mtd; |
143 | 143 | ||
144 | /* mount by MTD device name */ | 144 | /* mount by MTD device name */ |
145 | DEBUG(1, "MTDSB: mtd:%%s, name \"%s\"\n", | 145 | pr_debug("MTDSB: mtd:%%s, name \"%s\"\n", |
146 | dev_name + 4); | 146 | dev_name + 4); |
147 | 147 | ||
148 | mtd = get_mtd_device_nm(dev_name + 4); | 148 | mtd = get_mtd_device_nm(dev_name + 4); |
@@ -163,7 +163,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
163 | mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); | 163 | mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); |
164 | if (!*endptr) { | 164 | if (!*endptr) { |
165 | /* It was a valid number */ | 165 | /* It was a valid number */ |
166 | DEBUG(1, "MTDSB: mtd%%d, mtdnr %d\n", | 166 | pr_debug("MTDSB: mtd%%d, mtdnr %d\n", |
167 | mtdnr); | 167 | mtdnr); |
168 | return mount_mtd_nr(fs_type, flags, | 168 | return mount_mtd_nr(fs_type, flags, |
169 | dev_name, data, | 169 | dev_name, data, |
@@ -179,10 +179,10 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
179 | bdev = lookup_bdev(dev_name); | 179 | bdev = lookup_bdev(dev_name); |
180 | if (IS_ERR(bdev)) { | 180 | if (IS_ERR(bdev)) { |
181 | ret = PTR_ERR(bdev); | 181 | ret = PTR_ERR(bdev); |
182 | DEBUG(1, "MTDSB: lookup_bdev() returned %d\n", ret); | 182 | pr_debug("MTDSB: lookup_bdev() returned %d\n", ret); |
183 | return ERR_PTR(ret); | 183 | return ERR_PTR(ret); |
184 | } | 184 | } |
185 | DEBUG(1, "MTDSB: lookup_bdev() returned 0\n"); | 185 | pr_debug("MTDSB: lookup_bdev() returned 0\n"); |
186 | 186 | ||
187 | ret = -EINVAL; | 187 | ret = -EINVAL; |
188 | 188 | ||