projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Makefile' of git://git.denx.de/u-boot-arm
[platform/kernel/u-boot.git]
/
common
/
cmd_jffs2.c
diff --git
a/common/cmd_jffs2.c
b/common/cmd_jffs2.c
index
1b67e73
..
c031d80
100644
(file)
--- a/
common/cmd_jffs2.c
+++ b/
common/cmd_jffs2.c
@@
-96,12
+96,12
@@
#include <cramfs/cramfs_fs.h>
#if defined(CONFIG_CMD_NAND)
#include <cramfs/cramfs_fs.h>
#if defined(CONFIG_CMD_NAND)
-#ifdef C
F
G_NAND_LEGACY
+#ifdef C
ONFI
G_NAND_LEGACY
#include <linux/mtd/nand_legacy.h>
#include <linux/mtd/nand_legacy.h>
-#else /* !C
F
G_NAND_LEGACY */
+#else /* !C
ONFI
G_NAND_LEGACY */
#include <linux/mtd/nand.h>
#include <nand.h>
#include <linux/mtd/nand.h>
#include <nand.h>
-#endif /* !C
F
G_NAND_LEGACY */
+#endif /* !C
ONFI
G_NAND_LEGACY */
#endif
/* enable/disable debugging messages */
#define DEBUG_JFFS
#endif
/* enable/disable debugging messages */
#define DEBUG_JFFS
@@
-241,13
+241,13
@@
static void memsize_format(char *buf, u32 size)
#define SIZE_KB ((u32)1024)
if ((size % SIZE_GB) == 0)
#define SIZE_KB ((u32)1024)
if ((size % SIZE_GB) == 0)
- sprintf(buf, "%
l
ug", size/SIZE_GB);
+ sprintf(buf, "%ug", size/SIZE_GB);
else if ((size % SIZE_MB) == 0)
else if ((size % SIZE_MB) == 0)
- sprintf(buf, "%
l
um", size/SIZE_MB);
+ sprintf(buf, "%um", size/SIZE_MB);
else if (size % SIZE_KB == 0)
else if (size % SIZE_KB == 0)
- sprintf(buf, "%
l
uk", size/SIZE_KB);
+ sprintf(buf, "%uk", size/SIZE_KB);
else
else
- sprintf(buf, "%
l
u", size);
+ sprintf(buf, "%u", size);
}
/**
}
/**
@@
-416,7
+416,7
@@
static int part_validate(struct mtdids *id, struct part_info *part)
part->size = id->size - part->offset;
if (part->offset > id->size) {
part->size = id->size - part->offset;
if (part->offset > id->size) {
- printf("%s: offset %08
lx beyond flash size %08l
x\n",
+ printf("%s: offset %08
x beyond flash size %08
x\n",
id->mtd_id, part->offset, id->size);
return 1;
}
id->mtd_id, part->offset, id->size);
return 1;
}
@@
-476,7
+476,7
@@
static int part_del(struct mtd_device *dev, struct part_info *part)
}
}
}
}
-#ifdef C
F
G_NAND_LEGACY
+#ifdef C
ONFI
G_NAND_LEGACY
jffs2_free_cache(part);
#endif
list_del(&part->link);
jffs2_free_cache(part);
#endif
list_del(&part->link);
@@
-505,7
+505,7
@@
static void part_delall(struct list_head *head)
list_for_each_safe(entry, n, head) {
part_tmp = list_entry(entry, struct part_info, link);
list_for_each_safe(entry, n, head) {
part_tmp = list_entry(entry, struct part_info, link);
-#ifdef C
F
G_NAND_LEGACY
+#ifdef C
ONFI
G_NAND_LEGACY
jffs2_free_cache(part_tmp);
#endif
list_del(entry);
jffs2_free_cache(part_tmp);
#endif
list_del(entry);
@@
-741,7
+741,7
@@
static int device_validate(u8 type, u8 num, u32 *size)
} else if (type == MTD_DEV_TYPE_NAND) {
#if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)
if (num < CFG_MAX_NAND_DEVICE) {
} else if (type == MTD_DEV_TYPE_NAND) {
#if defined(CONFIG_JFFS2_NAND) && defined(CONFIG_CMD_NAND)
if (num < CFG_MAX_NAND_DEVICE) {
-#ifndef C
F
G_NAND_LEGACY
+#ifndef C
ONFI
G_NAND_LEGACY
*size = nand_info[num].size;
#else
extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
*size = nand_info[num].size;
#else
extern struct nand_chip nand_dev_desc[CFG_MAX_NAND_DEVICE];
@@
-1288,7
+1288,7
@@
static void list_partitions(void)
if (current_dev) {
part = jffs2_part_info(current_dev, current_partnum);
if (part) {
if (current_dev) {
part = jffs2_part_info(current_dev, current_partnum);
if (part) {
- printf("\nactive partition: %s%d,%d - (%s) 0x%08
lx @ 0x%08l
x\n",
+ printf("\nactive partition: %s%d,%d - (%s) 0x%08
x @ 0x%08
x\n",
MTD_DEV_TYPE(current_dev->id->type),
current_dev->id->num, current_partnum,
part->name, part->size, part->offset);
MTD_DEV_TYPE(current_dev->id->type),
current_dev->id->num, current_partnum,
part->name, part->size, part->offset);