Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OS
U-Boot.Mirror
提交
ab4b956d
U
U-Boot.Mirror
项目概览
OS
/
U-Boot.Mirror
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
U-Boot.Mirror
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab4b956d
编写于
8月 06, 2007
作者:
M
Michal Simek
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FIX] Coding style cleanup - Wolfgang's suggestions
上级
a274ca4f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
10 deletion
+11
-10
Makefile
Makefile
+3
-2
common/cmd_jffs2.c
common/cmd_jffs2.c
+8
-8
未找到文件。
Makefile
浏览文件 @
ab4b956d
...
@@ -198,8 +198,9 @@ ifeq ($(CPU),ixp)
...
@@ -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
...
...
common/cmd_jffs2.c
浏览文件 @
ab4b956d
...
@@ -28,7 +28,7 @@
...
@@ -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 @@
...
@@ -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_
...
@@ -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
...
@@ -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
...
@@ -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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录