|
44 | 44 | #include <linux/module.h>
|
45 | 45 | #include <linux/err.h>
|
46 | 46 |
|
47 |
| -/* debug macro */ |
48 |
| -#if 0 |
49 |
| -#define dbg(x) do { printk("DEBUG-CMDLINE-PART: "); printk x; } while(0) |
50 |
| -#else |
51 |
| -#define dbg(x) |
52 |
| -#endif |
53 |
| - |
54 |
| - |
55 | 47 | /* special size referring to all the remaining space in a partition */
|
56 | 48 | #define SIZE_REMAINING ULLONG_MAX
|
57 | 49 | #define OFFSET_CONTINUOUS ULLONG_MAX
|
@@ -199,9 +191,9 @@ static struct mtd_partition * newpart(char *s,
|
199 | 191 | parts[this_part].name = extra_mem;
|
200 | 192 | extra_mem += name_len + 1;
|
201 | 193 |
|
202 |
| - dbg(("partition %d: name <%s>, offset %llx, size %llx, mask flags %x\n", |
| 194 | + pr_debug("partition %d: name <%s>, offset %llx, size %llx, mask flags %x\n", |
203 | 195 | this_part, parts[this_part].name, parts[this_part].offset,
|
204 |
| - parts[this_part].size, parts[this_part].mask_flags)); |
| 196 | + parts[this_part].size, parts[this_part].mask_flags); |
205 | 197 |
|
206 | 198 | /* return (updated) pointer to extra_mem memory */
|
207 | 199 | if (extra_mem_ptr)
|
@@ -267,7 +259,7 @@ static int mtdpart_setup_real(char *s)
|
267 | 259 | }
|
268 | 260 | mtd_id_len = p - mtd_id;
|
269 | 261 |
|
270 |
| - dbg(("parsing <%s>\n", p+1)); |
| 262 | + pr_debug("parsing <%s>\n", p+1); |
271 | 263 |
|
272 | 264 | /*
|
273 | 265 | * parse one mtd. have it reserve memory for the
|
@@ -304,8 +296,8 @@ static int mtdpart_setup_real(char *s)
|
304 | 296 | this_mtd->next = partitions;
|
305 | 297 | partitions = this_mtd;
|
306 | 298 |
|
307 |
| - dbg(("mtdid=<%s> num_parts=<%d>\n", |
308 |
| - this_mtd->mtd_id, this_mtd->num_parts)); |
| 299 | + pr_debug("mtdid=<%s> num_parts=<%d>\n", |
| 300 | + this_mtd->mtd_id, this_mtd->num_parts); |
309 | 301 |
|
310 | 302 |
|
311 | 303 | /* EOS - we're done */
|
|
0 commit comments