mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-10 12:39:22 -04:00
[FIX] Coding style cleanup - Wolfgang's suggestions
This commit is contained in:
parent
a274ca4f6d
commit
ab4b956d31
5
Makefile
5
Makefile
@ -198,8 +198,9 @@ ifeq ($(CPU),ixp)
|
|||||||
LIBS += cpu/ixp/npe/libnpe.a
|
LIBS += cpu/ixp/npe/libnpe.a
|
||||||
endif
|
endif
|
||||||
LIBS += lib_$(ARCH)/lib$(ARCH).a
|
LIBS += lib_$(ARCH)/lib$(ARCH).a
|
||||||
LIBS += fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a \
|
LIBS += fs/cramfs/libcramfs.a fs/ext2/libext2fs.a fs/fat/libfat.a \
|
||||||
fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a fs/romfs/libromfs.a
|
fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a \
|
||||||
|
fs/romfs/libromfs.a
|
||||||
LIBS += net/libnet.a
|
LIBS += net/libnet.a
|
||||||
LIBS += disk/libdisk.a
|
LIBS += disk/libdisk.a
|
||||||
LIBS += rtc/librtc.a
|
LIBS += rtc/librtc.a
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
*
|
*
|
||||||
* This program is distributed in the hope that it will be useful,
|
* This program is distributed in the hope that it will be useful,
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* GNU General Public License for more details.
|
* GNU General Public License for more details.
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
@ -110,7 +110,7 @@
|
|||||||
#define DEBUG_JFFS
|
#define DEBUG_JFFS
|
||||||
#undef DEBUG_JFFS
|
#undef DEBUG_JFFS
|
||||||
|
|
||||||
#ifdef DEBUG_JFFS
|
#ifdef DEBUG_JFFS
|
||||||
# define DEBUGF(fmt, args...) printf(fmt ,##args)
|
# define DEBUGF(fmt, args...) printf(fmt ,##args)
|
||||||
#else
|
#else
|
||||||
# define DEBUGF(fmt, args...)
|
# define DEBUGF(fmt, args...)
|
||||||
@ -189,10 +189,10 @@ static struct mtdids* id_find_by_mtd_id(const char *mtd_id, unsigned int mtd_id_
|
|||||||
static int device_del(struct mtd_device *dev);
|
static int device_del(struct mtd_device *dev);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parses a string into a number. The number stored at ptr is
|
* Parses a string into a number. The number stored at ptr is
|
||||||
* potentially suffixed with K (for kilobytes, or 1024 bytes),
|
* potentially suffixed with K (for kilobytes, or 1024 bytes),
|
||||||
* M (for megabytes, or 1048576 bytes), or G (for gigabytes, or
|
* M (for megabytes, or 1048576 bytes), or G (for gigabytes, or
|
||||||
* 1073741824). If the number is suffixed with K, M, or G, then
|
* 1073741824). If the number is suffixed with K, M, or G, then
|
||||||
* the return value is the number multiplied by one kilobyte, one
|
* the return value is the number multiplied by one kilobyte, one
|
||||||
* megabyte, or one gigabyte, respectively.
|
* megabyte, or one gigabyte, respectively.
|
||||||
*
|
*
|
||||||
@ -681,7 +681,7 @@ static int part_parse(const char *const partdef, const char **ret, struct part_i
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* allocate memory */
|
/* allocate memory */
|
||||||
part = (struct part_info *)malloc(sizeof(struct part_info) + name_len);
|
part = (struct part_info *)malloc(sizeof(struct part_info) + name_len);
|
||||||
if (!part) {
|
if (!part) {
|
||||||
printf("out of memory\n");
|
printf("out of memory\n");
|
||||||
@ -1837,9 +1837,9 @@ static struct part_info* jffs2_part_info(struct mtd_device *dev, unsigned int pa
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************/
|
/***************************************************/
|
||||||
/* U-boot commands */
|
/* U-boot commands */
|
||||||
/*************************************************/
|
/***************************************************/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Routine implementing fsload u-boot command. This routine tries to load
|
* Routine implementing fsload u-boot command. This routine tries to load
|
||||||
|
Loading…
x
Reference in New Issue
Block a user