Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
382066da
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
382066da
编写于
5月 24, 2006
作者:
S
Steven Whitehouse
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[GFS2] Casts for printing 64bit numbers
Signed-off-by:
N
Steven Whitehouse
<
swhiteho@redhat.com
>
上级
9229f013
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
27 addition
and
24 deletion
+27
-24
fs/gfs2/glock.c
fs/gfs2/glock.c
+3
-2
fs/gfs2/meta_io.c
fs/gfs2/meta_io.c
+4
-3
fs/gfs2/ondisk.c
fs/gfs2/ondisk.c
+12
-12
fs/gfs2/rgrp.c
fs/gfs2/rgrp.c
+2
-2
fs/gfs2/util.c
fs/gfs2/util.c
+6
-5
未找到文件。
fs/gfs2/glock.c
浏览文件 @
382066da
...
...
@@ -2196,7 +2196,8 @@ static int dump_inode(struct gfs2_inode *ip)
printk
(
KERN_INFO
" Inode:
\n
"
);
printk
(
KERN_INFO
" num = %llu %llu
\n
"
,
ip
->
i_num
.
no_formal_ino
,
ip
->
i_num
.
no_addr
);
(
unsigned
long
long
)
ip
->
i_num
.
no_formal_ino
,
(
unsigned
long
long
)
ip
->
i_num
.
no_addr
);
printk
(
KERN_INFO
" type = %u
\n
"
,
IF2DT
(
ip
->
i_di
.
di_mode
));
printk
(
KERN_INFO
" i_count = %d
\n
"
,
atomic_read
(
&
ip
->
i_count
));
printk
(
KERN_INFO
" i_flags ="
);
...
...
@@ -2228,7 +2229,7 @@ static int dump_glock(struct gfs2_glock *gl)
spin_lock
(
&
gl
->
gl_spin
);
printk
(
KERN_INFO
"Glock (%u, %llu)
\n
"
,
gl
->
gl_name
.
ln_type
,
gl
->
gl_name
.
ln_number
);
(
unsigned
long
long
)
gl
->
gl_name
.
ln_number
);
printk
(
KERN_INFO
" gl_flags ="
);
for
(
x
=
0
;
x
<
32
;
x
++
)
if
(
test_bit
(
x
,
&
gl
->
gl_flags
))
...
...
fs/gfs2/meta_io.c
浏览文件 @
382066da
...
...
@@ -65,7 +65,7 @@ static void stuck_releasepage(struct buffer_head *bh)
fs_warn
(
sdp
,
"stuck in gfs2_releasepage() %p
\n
"
,
inode
);
fs_warn
(
sdp
,
"blkno = %llu, bh->b_count = %d
\n
"
,
(
u
int64_t
)
bh
->
b_blocknr
,
atomic_read
(
&
bh
->
b_count
));
(
u
nsigned
long
long
)
bh
->
b_blocknr
,
atomic_read
(
&
bh
->
b_count
));
fs_warn
(
sdp
,
"pinned = %u
\n
"
,
buffer_pinned
(
bh
));
fs_warn
(
sdp
,
"bh->b_private = %s
\n
"
,
(
bd
)
?
"!NULL"
:
"NULL"
);
...
...
@@ -75,7 +75,7 @@ static void stuck_releasepage(struct buffer_head *bh)
gl
=
bd
->
bd_gl
;
fs_warn
(
sdp
,
"gl = (%u, %llu)
\n
"
,
gl
->
gl_name
.
ln_type
,
gl
->
gl_name
.
ln_number
);
gl
->
gl_name
.
ln_type
,
(
unsigned
long
long
)
gl
->
gl_name
.
ln_number
);
fs_warn
(
sdp
,
"bd_list_tr = %s, bd_le.le_list = %s
\n
"
,
(
list_empty
(
&
bd
->
bd_list_tr
))
?
"no"
:
"yes"
,
...
...
@@ -89,7 +89,8 @@ static void stuck_releasepage(struct buffer_head *bh)
return
;
fs_warn
(
sdp
,
"ip = %llu %llu
\n
"
,
ip
->
i_num
.
no_formal_ino
,
ip
->
i_num
.
no_addr
);
(
unsigned
long
long
)
ip
->
i_num
.
no_formal_ino
,
(
unsigned
long
long
)
ip
->
i_num
.
no_addr
);
fs_warn
(
sdp
,
"ip->i_count = %d, ip->i_vnode = %s
\n
"
,
atomic_read
(
&
ip
->
i_count
),
(
ip
->
i_vnode
)
?
"!NULL"
:
"NULL"
);
...
...
fs/gfs2/ondisk.c
浏览文件 @
382066da
...
...
@@ -50,8 +50,8 @@ void gfs2_inum_out(const struct gfs2_inum *no, char *buf)
static
void
gfs2_inum_print
(
struct
gfs2_inum
*
no
)
{
p
v
(
no
,
no_formal_ino
,
"%llu"
);
p
v
(
no
,
no_addr
,
"%llu"
);
p
rintk
(
KERN_INFO
" no_formal_ino = %llu
\n
"
,
(
unsigned
long
long
)
no
->
no_formal_ino
);
p
rintk
(
KERN_INFO
" no_addr = %llu
\n
"
,
(
unsigned
long
long
)
no
->
no_addr
);
}
static
void
gfs2_meta_header_in
(
struct
gfs2_meta_header
*
mh
,
char
*
buf
)
...
...
@@ -111,10 +111,10 @@ void gfs2_rindex_in(struct gfs2_rindex *ri, char *buf)
void
gfs2_rindex_print
(
struct
gfs2_rindex
*
ri
)
{
p
v
(
ri
,
ri_addr
,
"%llu"
);
p
rintk
(
KERN_INFO
" ri_addr = %llu
\n
"
,
(
unsigned
long
long
)
ri
->
ri_addr
);
pv
(
ri
,
ri_length
,
"%u"
);
p
v
(
ri
,
ri_data0
,
"%llu"
);
p
rintk
(
KERN_INFO
" ri_data0 = %llu
\n
"
,
(
unsigned
long
long
)
ri
->
ri_data0
);
pv
(
ri
,
ri_data
,
"%u"
);
pv
(
ri
,
ri_bitbytes
,
"%u"
);
...
...
@@ -226,16 +226,16 @@ void gfs2_dinode_print(struct gfs2_dinode *di)
pv
(
di
,
di_uid
,
"%u"
);
pv
(
di
,
di_gid
,
"%u"
);
pv
(
di
,
di_nlink
,
"%u"
);
p
v
(
di
,
di_size
,
"%llu"
);
p
v
(
di
,
di_blocks
,
"%llu"
);
p
v
(
di
,
di_atime
,
"%lld"
);
p
v
(
di
,
di_mtime
,
"%lld"
);
p
v
(
di
,
di_ctime
,
"%lld"
);
p
rintk
(
KERN_INFO
" di_size = %llu
\n
"
,
(
unsigned
long
long
)
di
->
di_size
);
p
rintk
(
KERN_INFO
" di_blocks = %llu
\n
"
,
(
unsigned
long
long
)
di
->
di_blocks
);
p
rintk
(
KERN_INFO
" di_atime = %lld
\n
"
,
(
long
long
)
di
->
di_atime
);
p
rintk
(
KERN_INFO
" di_mtime = %lld
\n
"
,
(
long
long
)
di
->
di_mtime
);
p
rintk
(
KERN_INFO
" di_ctime = %lld
\n
"
,
(
long
long
)
di
->
di_ctime
);
pv
(
di
,
di_major
,
"%u"
);
pv
(
di
,
di_minor
,
"%u"
);
p
v
(
di
,
di_goal_meta
,
"%llu"
);
p
v
(
di
,
di_goal_data
,
"%llu"
);
p
rintk
(
KERN_INFO
" di_goal_meta = %llu
\n
"
,
(
unsigned
long
long
)
di
->
di_goal_meta
);
p
rintk
(
KERN_INFO
" di_goal_data = %llu
\n
"
,
(
unsigned
long
long
)
di
->
di_goal_data
);
pv
(
di
,
di_flags
,
"0x%.8X"
);
pv
(
di
,
di_payload_format
,
"%u"
);
...
...
@@ -244,7 +244,7 @@ void gfs2_dinode_print(struct gfs2_dinode *di)
pv
(
di
,
di_depth
,
"%u"
);
pv
(
di
,
di_entries
,
"%u"
);
p
v
(
di
,
di_eattr
,
"%llu"
);
p
rintk
(
KERN_INFO
" di_eattr = %llu
\n
"
,
(
unsigned
long
long
)
di
->
di_eattr
);
}
void
gfs2_log_header_in
(
struct
gfs2_log_header
*
lh
,
char
*
buf
)
...
...
fs/gfs2/rgrp.c
浏览文件 @
382066da
...
...
@@ -1165,7 +1165,7 @@ static struct gfs2_rgrpd *rgblk_free(struct gfs2_sbd *sdp, uint64_t bstart,
rgd
=
gfs2_blk2rgrpd
(
sdp
,
bstart
);
if
(
!
rgd
)
{
if
(
gfs2_consist
(
sdp
))
fs_err
(
sdp
,
"block = %llu
\n
"
,
bstart
);
fs_err
(
sdp
,
"block = %llu
\n
"
,
(
unsigned
long
long
)
bstart
);
return
NULL
;
}
...
...
@@ -1452,7 +1452,7 @@ void gfs2_rlist_add(struct gfs2_sbd *sdp, struct gfs2_rgrp_list *rlist,
rgd
=
gfs2_blk2rgrpd
(
sdp
,
block
);
if
(
!
rgd
)
{
if
(
gfs2_consist
(
sdp
))
fs_err
(
sdp
,
"block = %llu
\n
"
,
block
);
fs_err
(
sdp
,
"block = %llu
\n
"
,
(
unsigned
long
long
)
block
);
return
;
}
...
...
fs/gfs2/util.c
浏览文件 @
382066da
...
...
@@ -116,7 +116,8 @@ int gfs2_consist_inode_i(struct gfs2_inode *ip, int cluster_wide,
"GFS2: fsid=%s: inode = %llu %llu
\n
"
"GFS2: fsid=%s: function = %s, file = %s, line = %u
\n
"
,
sdp
->
sd_fsname
,
sdp
->
sd_fsname
,
ip
->
i_num
.
no_formal_ino
,
ip
->
i_num
.
no_addr
,
sdp
->
sd_fsname
,
(
unsigned
long
long
)
ip
->
i_num
.
no_formal_ino
,
(
unsigned
long
long
)
ip
->
i_num
.
no_addr
,
sdp
->
sd_fsname
,
function
,
file
,
line
);
return
rv
;
}
...
...
@@ -137,7 +138,7 @@ int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide,
"GFS2: fsid=%s: RG = %llu
\n
"
"GFS2: fsid=%s: function = %s, file = %s, line = %u
\n
"
,
sdp
->
sd_fsname
,
sdp
->
sd_fsname
,
rgd
->
rd_ri
.
ri_addr
,
sdp
->
sd_fsname
,
(
unsigned
long
long
)
rgd
->
rd_ri
.
ri_addr
,
sdp
->
sd_fsname
,
function
,
file
,
line
);
return
rv
;
}
...
...
@@ -158,7 +159,7 @@ int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
"GFS2: fsid=%s: bh = %llu (%s)
\n
"
"GFS2: fsid=%s: function = %s, file = %s, line = %u
\n
"
,
sdp
->
sd_fsname
,
sdp
->
sd_fsname
,
(
u
int64_t
)
bh
->
b_blocknr
,
type
,
sdp
->
sd_fsname
,
(
u
nsigned
long
long
)
bh
->
b_blocknr
,
type
,
sdp
->
sd_fsname
,
function
,
file
,
line
);
return
(
me
)
?
-
1
:
-
2
;
}
...
...
@@ -179,7 +180,7 @@ int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh,
"GFS2: fsid=%s: bh = %llu (type: exp=%u, found=%u)
\n
"
"GFS2: fsid=%s: function = %s, file = %s, line = %u
\n
"
,
sdp
->
sd_fsname
,
sdp
->
sd_fsname
,
(
u
int64_t
)
bh
->
b_blocknr
,
type
,
t
,
sdp
->
sd_fsname
,
(
u
nsigned
long
long
)
bh
->
b_blocknr
,
type
,
t
,
sdp
->
sd_fsname
,
function
,
file
,
line
);
return
(
me
)
?
-
1
:
-
2
;
}
...
...
@@ -217,7 +218,7 @@ int gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
"GFS2: fsid=%s: block = %llu
\n
"
"GFS2: fsid=%s: function = %s, file = %s, line = %u
\n
"
,
sdp
->
sd_fsname
,
sdp
->
sd_fsname
,
(
u
int64_t
)
bh
->
b_blocknr
,
sdp
->
sd_fsname
,
(
u
nsigned
long
long
)
bh
->
b_blocknr
,
sdp
->
sd_fsname
,
function
,
file
,
line
);
return
rv
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录