mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-02 12:31:31 +00:00
mtdparts: Correct use of debug()
The debug() macro now evaluates its expression so does not need #ifdef protection. In fact the current code causes a warning with the new log implementation. Adjust the code to fix this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
0e98b0a650
commit
95b41b80d7
1 changed files with 0 additions and 3 deletions
|
@ -873,15 +873,12 @@ static int device_parse(const char *const mtd_dev, const char **ret, struct mtd_
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
pend = strchr(p, ';');
|
pend = strchr(p, ';');
|
||||||
#endif
|
|
||||||
debug("dev type = %d (%s), dev num = %d, mtd-id = %s\n",
|
debug("dev type = %d (%s), dev num = %d, mtd-id = %s\n",
|
||||||
id->type, MTD_DEV_TYPE(id->type),
|
id->type, MTD_DEV_TYPE(id->type),
|
||||||
id->num, id->mtd_id);
|
id->num, id->mtd_id);
|
||||||
debug("parsing partitions %.*s\n", (int)(pend ? pend - p : strlen(p)), p);
|
debug("parsing partitions %.*s\n", (int)(pend ? pend - p : strlen(p)), p);
|
||||||
|
|
||||||
|
|
||||||
/* parse partitions */
|
/* parse partitions */
|
||||||
num_parts = 0;
|
num_parts = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue