diff options
author | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-24 10:22:09 -0400 |
---|---|---|
committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-05-24 10:22:09 -0400 |
commit | 382066da251132f768380f4852ed5afb72d88f80 (patch) | |
tree | f8ae69e6b441452f9958f45cea15a0cf90baa39d /fs | |
parent | 9229f013495dcdae76e9942ebc2cfc69851fe10a (diff) |
[GFS2] Casts for printing 64bit numbers
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/gfs2/glock.c | 5 | ||||
-rw-r--r-- | fs/gfs2/meta_io.c | 7 | ||||
-rw-r--r-- | fs/gfs2/ondisk.c | 24 | ||||
-rw-r--r-- | fs/gfs2/rgrp.c | 4 | ||||
-rw-r--r-- | fs/gfs2/util.c | 11 |
5 files changed, 27 insertions, 24 deletions
diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 2ef8accf1cbc..0603a6de52c9 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c | |||
@@ -2196,7 +2196,8 @@ static int dump_inode(struct gfs2_inode *ip) | |||
2196 | 2196 | ||
2197 | printk(KERN_INFO " Inode:\n"); | 2197 | printk(KERN_INFO " Inode:\n"); |
2198 | printk(KERN_INFO " num = %llu %llu\n", | 2198 | printk(KERN_INFO " num = %llu %llu\n", |
2199 | ip->i_num.no_formal_ino, ip->i_num.no_addr); | 2199 | (unsigned long long)ip->i_num.no_formal_ino, |
2200 | (unsigned long long)ip->i_num.no_addr); | ||
2200 | printk(KERN_INFO " type = %u\n", IF2DT(ip->i_di.di_mode)); | 2201 | printk(KERN_INFO " type = %u\n", IF2DT(ip->i_di.di_mode)); |
2201 | printk(KERN_INFO " i_count = %d\n", atomic_read(&ip->i_count)); | 2202 | printk(KERN_INFO " i_count = %d\n", atomic_read(&ip->i_count)); |
2202 | printk(KERN_INFO " i_flags ="); | 2203 | printk(KERN_INFO " i_flags ="); |
@@ -2228,7 +2229,7 @@ static int dump_glock(struct gfs2_glock *gl) | |||
2228 | spin_lock(&gl->gl_spin); | 2229 | spin_lock(&gl->gl_spin); |
2229 | 2230 | ||
2230 | printk(KERN_INFO "Glock (%u, %llu)\n", gl->gl_name.ln_type, | 2231 | printk(KERN_INFO "Glock (%u, %llu)\n", gl->gl_name.ln_type, |
2231 | gl->gl_name.ln_number); | 2232 | (unsigned long long)gl->gl_name.ln_number); |
2232 | printk(KERN_INFO " gl_flags ="); | 2233 | printk(KERN_INFO " gl_flags ="); |
2233 | for (x = 0; x < 32; x++) | 2234 | for (x = 0; x < 32; x++) |
2234 | if (test_bit(x, &gl->gl_flags)) | 2235 | if (test_bit(x, &gl->gl_flags)) |
diff --git a/fs/gfs2/meta_io.c b/fs/gfs2/meta_io.c index b9895bbd5feb..c78517225f61 100644 --- a/fs/gfs2/meta_io.c +++ b/fs/gfs2/meta_io.c | |||
@@ -65,7 +65,7 @@ static void stuck_releasepage(struct buffer_head *bh) | |||
65 | 65 | ||
66 | fs_warn(sdp, "stuck in gfs2_releasepage() %p\n", inode); | 66 | fs_warn(sdp, "stuck in gfs2_releasepage() %p\n", inode); |
67 | fs_warn(sdp, "blkno = %llu, bh->b_count = %d\n", | 67 | fs_warn(sdp, "blkno = %llu, bh->b_count = %d\n", |
68 | (uint64_t)bh->b_blocknr, atomic_read(&bh->b_count)); | 68 | (unsigned long long)bh->b_blocknr, atomic_read(&bh->b_count)); |
69 | fs_warn(sdp, "pinned = %u\n", buffer_pinned(bh)); | 69 | fs_warn(sdp, "pinned = %u\n", buffer_pinned(bh)); |
70 | fs_warn(sdp, "bh->b_private = %s\n", (bd) ? "!NULL" : "NULL"); | 70 | fs_warn(sdp, "bh->b_private = %s\n", (bd) ? "!NULL" : "NULL"); |
71 | 71 | ||
@@ -75,7 +75,7 @@ static void stuck_releasepage(struct buffer_head *bh) | |||
75 | gl = bd->bd_gl; | 75 | gl = bd->bd_gl; |
76 | 76 | ||
77 | fs_warn(sdp, "gl = (%u, %llu)\n", | 77 | fs_warn(sdp, "gl = (%u, %llu)\n", |
78 | gl->gl_name.ln_type, gl->gl_name.ln_number); | 78 | gl->gl_name.ln_type, (unsigned long long)gl->gl_name.ln_number); |
79 | 79 | ||
80 | fs_warn(sdp, "bd_list_tr = %s, bd_le.le_list = %s\n", | 80 | fs_warn(sdp, "bd_list_tr = %s, bd_le.le_list = %s\n", |
81 | (list_empty(&bd->bd_list_tr)) ? "no" : "yes", | 81 | (list_empty(&bd->bd_list_tr)) ? "no" : "yes", |
@@ -89,7 +89,8 @@ static void stuck_releasepage(struct buffer_head *bh) | |||
89 | return; | 89 | return; |
90 | 90 | ||
91 | fs_warn(sdp, "ip = %llu %llu\n", | 91 | fs_warn(sdp, "ip = %llu %llu\n", |
92 | ip->i_num.no_formal_ino, ip->i_num.no_addr); | 92 | (unsigned long long)ip->i_num.no_formal_ino, |
93 | (unsigned long long)ip->i_num.no_addr); | ||
93 | fs_warn(sdp, "ip->i_count = %d, ip->i_vnode = %s\n", | 94 | fs_warn(sdp, "ip->i_count = %d, ip->i_vnode = %s\n", |
94 | atomic_read(&ip->i_count), | 95 | atomic_read(&ip->i_count), |
95 | (ip->i_vnode) ? "!NULL" : "NULL"); | 96 | (ip->i_vnode) ? "!NULL" : "NULL"); |
diff --git a/fs/gfs2/ondisk.c b/fs/gfs2/ondisk.c index b3bc21a6ba07..be5c86e5787e 100644 --- a/fs/gfs2/ondisk.c +++ b/fs/gfs2/ondisk.c | |||
@@ -50,8 +50,8 @@ void gfs2_inum_out(const struct gfs2_inum *no, char *buf) | |||
50 | 50 | ||
51 | static void gfs2_inum_print(struct gfs2_inum *no) | 51 | static void gfs2_inum_print(struct gfs2_inum *no) |
52 | { | 52 | { |
53 | pv(no, no_formal_ino, "%llu"); | 53 | printk(KERN_INFO " no_formal_ino = %llu\n", (unsigned long long)no->no_formal_ino); |
54 | pv(no, no_addr, "%llu"); | 54 | printk(KERN_INFO " no_addr = %llu\n", (unsigned long long)no->no_addr); |
55 | } | 55 | } |
56 | 56 | ||
57 | static void gfs2_meta_header_in(struct gfs2_meta_header *mh, char *buf) | 57 | 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) | |||
111 | 111 | ||
112 | void gfs2_rindex_print(struct gfs2_rindex *ri) | 112 | void gfs2_rindex_print(struct gfs2_rindex *ri) |
113 | { | 113 | { |
114 | pv(ri, ri_addr, "%llu"); | 114 | printk(KERN_INFO " ri_addr = %llu\n", (unsigned long long)ri->ri_addr); |
115 | pv(ri, ri_length, "%u"); | 115 | pv(ri, ri_length, "%u"); |
116 | 116 | ||
117 | pv(ri, ri_data0, "%llu"); | 117 | printk(KERN_INFO " ri_data0 = %llu\n", (unsigned long long)ri->ri_data0); |
118 | pv(ri, ri_data, "%u"); | 118 | pv(ri, ri_data, "%u"); |
119 | 119 | ||
120 | pv(ri, ri_bitbytes, "%u"); | 120 | pv(ri, ri_bitbytes, "%u"); |
@@ -226,16 +226,16 @@ void gfs2_dinode_print(struct gfs2_dinode *di) | |||
226 | pv(di, di_uid, "%u"); | 226 | pv(di, di_uid, "%u"); |
227 | pv(di, di_gid, "%u"); | 227 | pv(di, di_gid, "%u"); |
228 | pv(di, di_nlink, "%u"); | 228 | pv(di, di_nlink, "%u"); |
229 | pv(di, di_size, "%llu"); | 229 | printk(KERN_INFO " di_size = %llu\n", (unsigned long long)di->di_size); |
230 | pv(di, di_blocks, "%llu"); | 230 | printk(KERN_INFO " di_blocks = %llu\n", (unsigned long long)di->di_blocks); |
231 | pv(di, di_atime, "%lld"); | 231 | printk(KERN_INFO " di_atime = %lld\n", (long long)di->di_atime); |
232 | pv(di, di_mtime, "%lld"); | 232 | printk(KERN_INFO " di_mtime = %lld\n", (long long)di->di_mtime); |
233 | pv(di, di_ctime, "%lld"); | 233 | printk(KERN_INFO " di_ctime = %lld\n", (long long)di->di_ctime); |
234 | pv(di, di_major, "%u"); | 234 | pv(di, di_major, "%u"); |
235 | pv(di, di_minor, "%u"); | 235 | pv(di, di_minor, "%u"); |
236 | 236 | ||
237 | pv(di, di_goal_meta, "%llu"); | 237 | printk(KERN_INFO " di_goal_meta = %llu\n", (unsigned long long)di->di_goal_meta); |
238 | pv(di, di_goal_data, "%llu"); | 238 | printk(KERN_INFO " di_goal_data = %llu\n", (unsigned long long)di->di_goal_data); |
239 | 239 | ||
240 | pv(di, di_flags, "0x%.8X"); | 240 | pv(di, di_flags, "0x%.8X"); |
241 | pv(di, di_payload_format, "%u"); | 241 | pv(di, di_payload_format, "%u"); |
@@ -244,7 +244,7 @@ void gfs2_dinode_print(struct gfs2_dinode *di) | |||
244 | pv(di, di_depth, "%u"); | 244 | pv(di, di_depth, "%u"); |
245 | pv(di, di_entries, "%u"); | 245 | pv(di, di_entries, "%u"); |
246 | 246 | ||
247 | pv(di, di_eattr, "%llu"); | 247 | printk(KERN_INFO " di_eattr = %llu\n", (unsigned long long)di->di_eattr); |
248 | } | 248 | } |
249 | 249 | ||
250 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) | 250 | void gfs2_log_header_in(struct gfs2_log_header *lh, char *buf) |
diff --git a/fs/gfs2/rgrp.c b/fs/gfs2/rgrp.c index c1c6fa9c0e4b..691e6f3ce43b 100644 --- a/fs/gfs2/rgrp.c +++ b/fs/gfs2/rgrp.c | |||
@@ -1165,7 +1165,7 @@ static struct gfs2_rgrpd *rgblk_free(struct gfs2_sbd *sdp, uint64_t bstart, | |||
1165 | rgd = gfs2_blk2rgrpd(sdp, bstart); | 1165 | rgd = gfs2_blk2rgrpd(sdp, bstart); |
1166 | if (!rgd) { | 1166 | if (!rgd) { |
1167 | if (gfs2_consist(sdp)) | 1167 | if (gfs2_consist(sdp)) |
1168 | fs_err(sdp, "block = %llu\n", bstart); | 1168 | fs_err(sdp, "block = %llu\n", (unsigned long long)bstart); |
1169 | return NULL; | 1169 | return NULL; |
1170 | } | 1170 | } |
1171 | 1171 | ||
@@ -1452,7 +1452,7 @@ void gfs2_rlist_add(struct gfs2_sbd *sdp, struct gfs2_rgrp_list *rlist, | |||
1452 | rgd = gfs2_blk2rgrpd(sdp, block); | 1452 | rgd = gfs2_blk2rgrpd(sdp, block); |
1453 | if (!rgd) { | 1453 | if (!rgd) { |
1454 | if (gfs2_consist(sdp)) | 1454 | if (gfs2_consist(sdp)) |
1455 | fs_err(sdp, "block = %llu\n", block); | 1455 | fs_err(sdp, "block = %llu\n", (unsigned long long)block); |
1456 | return; | 1456 | return; |
1457 | } | 1457 | } |
1458 | 1458 | ||
diff --git a/fs/gfs2/util.c b/fs/gfs2/util.c index 0b37d6bcc36e..88974e9824f7 100644 --- a/fs/gfs2/util.c +++ b/fs/gfs2/util.c | |||
@@ -116,7 +116,8 @@ int gfs2_consist_inode_i(struct gfs2_inode *ip, int cluster_wide, | |||
116 | "GFS2: fsid=%s: inode = %llu %llu\n" | 116 | "GFS2: fsid=%s: inode = %llu %llu\n" |
117 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", | 117 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", |
118 | sdp->sd_fsname, | 118 | sdp->sd_fsname, |
119 | sdp->sd_fsname, ip->i_num.no_formal_ino, ip->i_num.no_addr, | 119 | sdp->sd_fsname, (unsigned long long)ip->i_num.no_formal_ino, |
120 | (unsigned long long)ip->i_num.no_addr, | ||
120 | sdp->sd_fsname, function, file, line); | 121 | sdp->sd_fsname, function, file, line); |
121 | return rv; | 122 | return rv; |
122 | } | 123 | } |
@@ -137,7 +138,7 @@ int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, | |||
137 | "GFS2: fsid=%s: RG = %llu\n" | 138 | "GFS2: fsid=%s: RG = %llu\n" |
138 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", | 139 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", |
139 | sdp->sd_fsname, | 140 | sdp->sd_fsname, |
140 | sdp->sd_fsname, rgd->rd_ri.ri_addr, | 141 | sdp->sd_fsname, (unsigned long long)rgd->rd_ri.ri_addr, |
141 | sdp->sd_fsname, function, file, line); | 142 | sdp->sd_fsname, function, file, line); |
142 | return rv; | 143 | return rv; |
143 | } | 144 | } |
@@ -158,7 +159,7 @@ int gfs2_meta_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, | |||
158 | "GFS2: fsid=%s: bh = %llu (%s)\n" | 159 | "GFS2: fsid=%s: bh = %llu (%s)\n" |
159 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", | 160 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", |
160 | sdp->sd_fsname, | 161 | sdp->sd_fsname, |
161 | sdp->sd_fsname, (uint64_t)bh->b_blocknr, type, | 162 | sdp->sd_fsname, (unsigned long long)bh->b_blocknr, type, |
162 | sdp->sd_fsname, function, file, line); | 163 | sdp->sd_fsname, function, file, line); |
163 | return (me) ? -1 : -2; | 164 | return (me) ? -1 : -2; |
164 | } | 165 | } |
@@ -179,7 +180,7 @@ int gfs2_metatype_check_ii(struct gfs2_sbd *sdp, struct buffer_head *bh, | |||
179 | "GFS2: fsid=%s: bh = %llu (type: exp=%u, found=%u)\n" | 180 | "GFS2: fsid=%s: bh = %llu (type: exp=%u, found=%u)\n" |
180 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", | 181 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", |
181 | sdp->sd_fsname, | 182 | sdp->sd_fsname, |
182 | sdp->sd_fsname, (uint64_t)bh->b_blocknr, type, t, | 183 | sdp->sd_fsname, (unsigned long long)bh->b_blocknr, type, t, |
183 | sdp->sd_fsname, function, file, line); | 184 | sdp->sd_fsname, function, file, line); |
184 | return (me) ? -1 : -2; | 185 | return (me) ? -1 : -2; |
185 | } | 186 | } |
@@ -217,7 +218,7 @@ int gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh, | |||
217 | "GFS2: fsid=%s: block = %llu\n" | 218 | "GFS2: fsid=%s: block = %llu\n" |
218 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", | 219 | "GFS2: fsid=%s: function = %s, file = %s, line = %u\n", |
219 | sdp->sd_fsname, | 220 | sdp->sd_fsname, |
220 | sdp->sd_fsname, (uint64_t)bh->b_blocknr, | 221 | sdp->sd_fsname, (unsigned long long)bh->b_blocknr, |
221 | sdp->sd_fsname, function, file, line); | 222 | sdp->sd_fsname, function, file, line); |
222 | return rv; | 223 | return rv; |
223 | } | 224 | } |