Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
89d8d320
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
89d8d320
编写于
3月 11, 2011
作者:
D
David Woodhouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mtd: fix printf format warnings, mostly lack of %zd for size_t, in mtdswap
Signed-off-by:
N
David Woodhouse
<
David.Woodhouse@intel.com
>
上级
629286b9
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
8 deletion
+8
-8
drivers/mtd/mtdswap.c
drivers/mtd/mtdswap.c
+8
-8
未找到文件。
drivers/mtd/mtdswap.c
浏览文件 @
89d8d320
...
...
@@ -331,7 +331,7 @@ static int mtdswap_read_oob(struct mtdswap_dev *d, loff_t from,
if
(
ops
->
oobretlen
<
ops
->
ooblen
)
{
dev_warn
(
d
->
dev
,
"Read OOB return short read (%zd bytes not "
"%d) for block at %08llx
\n
"
,
"%
z
d) for block at %08llx
\n
"
,
ops
->
oobretlen
,
ops
->
ooblen
,
from
);
return
-
EIO
;
}
...
...
@@ -421,7 +421,7 @@ static int mtdswap_write_marker(struct mtdswap_dev *d, struct swap_eb *eb,
if
(
ops
.
oobretlen
!=
ops
.
ooblen
)
{
dev_warn
(
d
->
dev
,
"Short OOB write for block at %08llx: "
"%zd not %d
\n
"
,
"%zd not %
z
d
\n
"
,
offset
,
ops
.
oobretlen
,
ops
.
ooblen
);
return
ret
;
}
...
...
@@ -705,13 +705,13 @@ static int mtdswap_write_block(struct mtdswap_dev *d, char *buf,
}
if
(
ret
<
0
)
{
dev_err
(
d
->
dev
,
"Write to MTD device failed: %d (%d written)"
,
dev_err
(
d
->
dev
,
"Write to MTD device failed: %d (%
z
d written)"
,
ret
,
retlen
);
goto
err
;
}
if
(
retlen
!=
PAGE_SIZE
)
{
dev_err
(
d
->
dev
,
"Short write to MTD device: %d written"
,
dev_err
(
d
->
dev
,
"Short write to MTD device: %
z
d written"
,
retlen
);
ret
=
-
EIO
;
goto
err
;
...
...
@@ -758,7 +758,7 @@ static int mtdswap_move_block(struct mtdswap_dev *d, unsigned int oldblock,
}
if
(
retlen
!=
PAGE_SIZE
)
{
dev_err
(
d
->
dev
,
"Short read: %d (block %u)
\n
"
,
retlen
,
dev_err
(
d
->
dev
,
"Short read: %
z
d (block %u)
\n
"
,
retlen
,
oldblock
);
ret
=
-
EIO
;
goto
read_error
;
...
...
@@ -1188,7 +1188,7 @@ static int mtdswap_readsect(struct mtd_blktrans_dev *dev,
}
if
(
retlen
!=
PAGE_SIZE
)
{
dev_err
(
d
->
dev
,
"Short read %d
\n
"
,
retlen
);
dev_err
(
d
->
dev
,
"Short read %
z
d
\n
"
,
retlen
);
return
-
EIO
;
}
...
...
@@ -1304,7 +1304,7 @@ static int mtdswap_show(struct seq_file *s, void *data)
seq_printf
(
s
,
"discarded pages count: %llu
\n
"
,
d
->
discard_page_count
);
seq_printf
(
s
,
"
\n
"
);
seq_printf
(
s
,
"total pages: %
l
u
\n
"
,
pages
);
seq_printf
(
s
,
"total pages: %u
\n
"
,
pages
);
seq_printf
(
s
,
"pages mapped: %u
\n
"
,
mapped
);
return
0
;
...
...
@@ -1458,7 +1458,7 @@ static void mtdswap_add_mtd(struct mtd_blktrans_ops *tr, struct mtd_info *mtd)
oinfo
=
mtd
->
ecclayout
;
if
(
!
mtd
->
oobsize
||
!
oinfo
||
oinfo
->
oobavail
<
MTDSWAP_OOBSIZE
)
{
printk
(
KERN_ERR
"%s: Not enough free bytes in OOB, "
"%d available, %u needed.
\n
"
,
"%d available, %
l
u needed.
\n
"
,
MTDSWAP_PREFIX
,
oinfo
->
oobavail
,
MTDSWAP_OOBSIZE
);
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录