diff options
author | Theodore Ts'o <tytso@mit.edu> | 2009-09-17 08:50:18 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2009-09-17 08:50:18 -0400 |
commit | a3710fd1ee8cd542c5de63cf2c39f8912031f867 (patch) | |
tree | 5d101a6345549df731891f64c6bec51c89823f70 | |
parent | 7f1346a9de6a689b03f2c1c3a387e49ec64da267 (diff) |
ext4: fix tracepoint format string warnings
Unlike on some other architectures ino_t is an unsigned int on s390.
So add an explicit cast to avoid lots of compile warnings:
In file included from include/trace/ftrace.h:285,
from include/trace/define_trace.h:61,
from include/trace/events/ext4.h:711,
from fs/ext4/super.c:50:
include/trace/events/ext4.h: In function 'ftrace_raw_output_ext4_free_inode':
include/trace/events/ext4.h:12: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'ino_t'
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
-rw-r--r-- | include/trace/events/ext4.h | 75 | ||||
-rw-r--r-- | include/trace/events/jbd2.h | 2 |
2 files changed, 41 insertions, 36 deletions
diff --git a/include/trace/events/ext4.h b/include/trace/events/ext4.h index dd43399288ea..68b53c7ef8a7 100644 --- a/include/trace/events/ext4.h +++ b/include/trace/events/ext4.h | |||
@@ -33,8 +33,8 @@ TRACE_EVENT(ext4_free_inode, | |||
33 | ), | 33 | ), |
34 | 34 | ||
35 | TP_printk("dev %s ino %lu mode %d uid %u gid %u blocks %llu", | 35 | TP_printk("dev %s ino %lu mode %d uid %u gid %u blocks %llu", |
36 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->mode, | 36 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
37 | __entry->uid, __entry->gid, | 37 | __entry->mode, __entry->uid, __entry->gid, |
38 | (unsigned long long) __entry->blocks) | 38 | (unsigned long long) __entry->blocks) |
39 | ); | 39 | ); |
40 | 40 | ||
@@ -56,7 +56,8 @@ TRACE_EVENT(ext4_request_inode, | |||
56 | ), | 56 | ), |
57 | 57 | ||
58 | TP_printk("dev %s dir %lu mode %d", | 58 | TP_printk("dev %s dir %lu mode %d", |
59 | jbd2_dev_to_name(__entry->dev), __entry->dir, __entry->mode) | 59 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->dir, |
60 | __entry->mode) | ||
60 | ); | 61 | ); |
61 | 62 | ||
62 | TRACE_EVENT(ext4_allocate_inode, | 63 | TRACE_EVENT(ext4_allocate_inode, |
@@ -79,7 +80,8 @@ TRACE_EVENT(ext4_allocate_inode, | |||
79 | ), | 80 | ), |
80 | 81 | ||
81 | TP_printk("dev %s ino %lu dir %lu mode %d", | 82 | TP_printk("dev %s ino %lu dir %lu mode %d", |
82 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->dir, __entry->mode) | 83 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
84 | (unsigned long) __entry->dir, __entry->mode) | ||
83 | ); | 85 | ); |
84 | 86 | ||
85 | TRACE_EVENT(ext4_write_begin, | 87 | TRACE_EVENT(ext4_write_begin, |
@@ -106,8 +108,8 @@ TRACE_EVENT(ext4_write_begin, | |||
106 | ), | 108 | ), |
107 | 109 | ||
108 | TP_printk("dev %s ino %lu pos %llu len %u flags %u", | 110 | TP_printk("dev %s ino %lu pos %llu len %u flags %u", |
109 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 111 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
110 | __entry->flags) | 112 | __entry->pos, __entry->len, __entry->flags) |
111 | ); | 113 | ); |
112 | 114 | ||
113 | TRACE_EVENT(ext4_ordered_write_end, | 115 | TRACE_EVENT(ext4_ordered_write_end, |
@@ -133,8 +135,8 @@ TRACE_EVENT(ext4_ordered_write_end, | |||
133 | ), | 135 | ), |
134 | 136 | ||
135 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", | 137 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", |
136 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 138 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
137 | __entry->copied) | 139 | __entry->pos, __entry->len, __entry->copied) |
138 | ); | 140 | ); |
139 | 141 | ||
140 | TRACE_EVENT(ext4_writeback_write_end, | 142 | TRACE_EVENT(ext4_writeback_write_end, |
@@ -160,8 +162,8 @@ TRACE_EVENT(ext4_writeback_write_end, | |||
160 | ), | 162 | ), |
161 | 163 | ||
162 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", | 164 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", |
163 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 165 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
164 | __entry->copied) | 166 | __entry->pos, __entry->len, __entry->copied) |
165 | ); | 167 | ); |
166 | 168 | ||
167 | TRACE_EVENT(ext4_journalled_write_end, | 169 | TRACE_EVENT(ext4_journalled_write_end, |
@@ -186,8 +188,8 @@ TRACE_EVENT(ext4_journalled_write_end, | |||
186 | ), | 188 | ), |
187 | 189 | ||
188 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", | 190 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", |
189 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 191 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
190 | __entry->copied) | 192 | __entry->pos, __entry->len, __entry->copied) |
191 | ); | 193 | ); |
192 | 194 | ||
193 | TRACE_EVENT(ext4_writepage, | 195 | TRACE_EVENT(ext4_writepage, |
@@ -209,7 +211,8 @@ TRACE_EVENT(ext4_writepage, | |||
209 | ), | 211 | ), |
210 | 212 | ||
211 | TP_printk("dev %s ino %lu page_index %lu", | 213 | TP_printk("dev %s ino %lu page_index %lu", |
212 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->index) | 214 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
215 | __entry->index) | ||
213 | ); | 216 | ); |
214 | 217 | ||
215 | TRACE_EVENT(ext4_da_writepages, | 218 | TRACE_EVENT(ext4_da_writepages, |
@@ -244,7 +247,8 @@ TRACE_EVENT(ext4_da_writepages, | |||
244 | ), | 247 | ), |
245 | 248 | ||
246 | TP_printk("dev %s ino %lu nr_to_write %ld pages_skipped %ld range_start %llu range_end %llu nonblocking %d for_kupdate %d for_reclaim %d range_cyclic %d", | 249 | TP_printk("dev %s ino %lu nr_to_write %ld pages_skipped %ld range_start %llu range_end %llu nonblocking %d for_kupdate %d for_reclaim %d range_cyclic %d", |
247 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->nr_to_write, | 250 | jbd2_dev_to_name(__entry->dev), |
251 | (unsigned long) __entry->ino, __entry->nr_to_write, | ||
248 | __entry->pages_skipped, __entry->range_start, | 252 | __entry->pages_skipped, __entry->range_start, |
249 | __entry->range_end, __entry->nonblocking, | 253 | __entry->range_end, __entry->nonblocking, |
250 | __entry->for_kupdate, __entry->for_reclaim, | 254 | __entry->for_kupdate, __entry->for_reclaim, |
@@ -279,7 +283,7 @@ TRACE_EVENT(ext4_da_write_pages, | |||
279 | ), | 283 | ), |
280 | 284 | ||
281 | TP_printk("dev %s ino %lu b_blocknr %llu b_size %u b_state 0x%04x first_page %lu io_done %d pages_written %d", | 285 | TP_printk("dev %s ino %lu b_blocknr %llu b_size %u b_state 0x%04x first_page %lu io_done %d pages_written %d", |
282 | jbd2_dev_to_name(__entry->dev), __entry->ino, | 286 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
283 | __entry->b_blocknr, __entry->b_size, | 287 | __entry->b_blocknr, __entry->b_size, |
284 | __entry->b_state, __entry->first_page, | 288 | __entry->b_state, __entry->first_page, |
285 | __entry->io_done, __entry->pages_written) | 289 | __entry->io_done, __entry->pages_written) |
@@ -314,7 +318,8 @@ TRACE_EVENT(ext4_da_writepages_result, | |||
314 | ), | 318 | ), |
315 | 319 | ||
316 | TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld congestion %d more_io %d no_nrwrite_index_update %d", | 320 | TP_printk("dev %s ino %lu ret %d pages_written %d pages_skipped %ld congestion %d more_io %d no_nrwrite_index_update %d", |
317 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->ret, | 321 | jbd2_dev_to_name(__entry->dev), |
322 | (unsigned long) __entry->ino, __entry->ret, | ||
318 | __entry->pages_written, __entry->pages_skipped, | 323 | __entry->pages_written, __entry->pages_skipped, |
319 | __entry->encountered_congestion, __entry->more_io, | 324 | __entry->encountered_congestion, __entry->more_io, |
320 | __entry->no_nrwrite_index_update) | 325 | __entry->no_nrwrite_index_update) |
@@ -343,8 +348,8 @@ TRACE_EVENT(ext4_da_write_begin, | |||
343 | ), | 348 | ), |
344 | 349 | ||
345 | TP_printk("dev %s ino %lu pos %llu len %u flags %u", | 350 | TP_printk("dev %s ino %lu pos %llu len %u flags %u", |
346 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 351 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
347 | __entry->flags) | 352 | __entry->pos, __entry->len, __entry->flags) |
348 | ); | 353 | ); |
349 | 354 | ||
350 | TRACE_EVENT(ext4_da_write_end, | 355 | TRACE_EVENT(ext4_da_write_end, |
@@ -370,8 +375,8 @@ TRACE_EVENT(ext4_da_write_end, | |||
370 | ), | 375 | ), |
371 | 376 | ||
372 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", | 377 | TP_printk("dev %s ino %lu pos %llu len %u copied %u", |
373 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pos, __entry->len, | 378 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
374 | __entry->copied) | 379 | __entry->pos, __entry->len, __entry->copied) |
375 | ); | 380 | ); |
376 | 381 | ||
377 | TRACE_EVENT(ext4_discard_blocks, | 382 | TRACE_EVENT(ext4_discard_blocks, |
@@ -421,8 +426,8 @@ TRACE_EVENT(ext4_mb_new_inode_pa, | |||
421 | ), | 426 | ), |
422 | 427 | ||
423 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", | 428 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", |
424 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pa_pstart, | 429 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
425 | __entry->pa_len, __entry->pa_lstart) | 430 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) |
426 | ); | 431 | ); |
427 | 432 | ||
428 | TRACE_EVENT(ext4_mb_new_group_pa, | 433 | TRACE_EVENT(ext4_mb_new_group_pa, |
@@ -449,8 +454,8 @@ TRACE_EVENT(ext4_mb_new_group_pa, | |||
449 | ), | 454 | ), |
450 | 455 | ||
451 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", | 456 | TP_printk("dev %s ino %lu pstart %llu len %u lstart %llu", |
452 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->pa_pstart, | 457 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
453 | __entry->pa_len, __entry->pa_lstart) | 458 | __entry->pa_pstart, __entry->pa_len, __entry->pa_lstart) |
454 | ); | 459 | ); |
455 | 460 | ||
456 | TRACE_EVENT(ext4_mb_release_inode_pa, | 461 | TRACE_EVENT(ext4_mb_release_inode_pa, |
@@ -476,8 +481,8 @@ TRACE_EVENT(ext4_mb_release_inode_pa, | |||
476 | ), | 481 | ), |
477 | 482 | ||
478 | TP_printk("dev %s ino %lu block %llu count %u", | 483 | TP_printk("dev %s ino %lu block %llu count %u", |
479 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->block, | 484 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
480 | __entry->count) | 485 | __entry->block, __entry->count) |
481 | ); | 486 | ); |
482 | 487 | ||
483 | TRACE_EVENT(ext4_mb_release_group_pa, | 488 | TRACE_EVENT(ext4_mb_release_group_pa, |
@@ -522,7 +527,7 @@ TRACE_EVENT(ext4_discard_preallocations, | |||
522 | ), | 527 | ), |
523 | 528 | ||
524 | TP_printk("dev %s ino %lu", | 529 | TP_printk("dev %s ino %lu", |
525 | jbd2_dev_to_name(__entry->dev), __entry->ino) | 530 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino) |
526 | ); | 531 | ); |
527 | 532 | ||
528 | TRACE_EVENT(ext4_mb_discard_preallocations, | 533 | TRACE_EVENT(ext4_mb_discard_preallocations, |
@@ -577,8 +582,8 @@ TRACE_EVENT(ext4_request_blocks, | |||
577 | ), | 582 | ), |
578 | 583 | ||
579 | TP_printk("dev %s ino %lu flags %u len %u lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", | 584 | TP_printk("dev %s ino %lu flags %u len %u lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", |
580 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->flags, | 585 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
581 | __entry->len, | 586 | __entry->flags, __entry->len, |
582 | (unsigned long long) __entry->logical, | 587 | (unsigned long long) __entry->logical, |
583 | (unsigned long long) __entry->goal, | 588 | (unsigned long long) __entry->goal, |
584 | (unsigned long long) __entry->lleft, | 589 | (unsigned long long) __entry->lleft, |
@@ -621,8 +626,8 @@ TRACE_EVENT(ext4_allocate_blocks, | |||
621 | ), | 626 | ), |
622 | 627 | ||
623 | TP_printk("dev %s ino %lu flags %u len %u block %llu lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", | 628 | TP_printk("dev %s ino %lu flags %u len %u block %llu lblk %llu goal %llu lleft %llu lright %llu pleft %llu pright %llu ", |
624 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->flags, | 629 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
625 | __entry->len, __entry->block, | 630 | __entry->flags, __entry->len, __entry->block, |
626 | (unsigned long long) __entry->logical, | 631 | (unsigned long long) __entry->logical, |
627 | (unsigned long long) __entry->goal, | 632 | (unsigned long long) __entry->goal, |
628 | (unsigned long long) __entry->lleft, | 633 | (unsigned long long) __entry->lleft, |
@@ -655,8 +660,8 @@ TRACE_EVENT(ext4_free_blocks, | |||
655 | ), | 660 | ), |
656 | 661 | ||
657 | TP_printk("dev %s ino %lu block %llu count %lu metadata %d", | 662 | TP_printk("dev %s ino %lu block %llu count %lu metadata %d", |
658 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->block, | 663 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
659 | __entry->count, __entry->metadata) | 664 | __entry->block, __entry->count, __entry->metadata) |
660 | ); | 665 | ); |
661 | 666 | ||
662 | TRACE_EVENT(ext4_sync_file, | 667 | TRACE_EVENT(ext4_sync_file, |
@@ -679,8 +684,8 @@ TRACE_EVENT(ext4_sync_file, | |||
679 | ), | 684 | ), |
680 | 685 | ||
681 | TP_printk("dev %s ino %ld parent %ld datasync %d ", | 686 | TP_printk("dev %s ino %ld parent %ld datasync %d ", |
682 | jbd2_dev_to_name(__entry->dev), __entry->ino, __entry->parent, | 687 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino, |
683 | __entry->datasync) | 688 | (unsigned long) __entry->parent, __entry->datasync) |
684 | ); | 689 | ); |
685 | 690 | ||
686 | TRACE_EVENT(ext4_sync_fs, | 691 | TRACE_EVENT(ext4_sync_fs, |
diff --git a/include/trace/events/jbd2.h b/include/trace/events/jbd2.h index 10813fa0c8d0..b851f0b4701c 100644 --- a/include/trace/events/jbd2.h +++ b/include/trace/events/jbd2.h | |||
@@ -159,7 +159,7 @@ TRACE_EVENT(jbd2_submit_inode_data, | |||
159 | ), | 159 | ), |
160 | 160 | ||
161 | TP_printk("dev %s ino %lu", | 161 | TP_printk("dev %s ino %lu", |
162 | jbd2_dev_to_name(__entry->dev), __entry->ino) | 162 | jbd2_dev_to_name(__entry->dev), (unsigned long) __entry->ino) |
163 | ); | 163 | ); |
164 | 164 | ||
165 | #endif /* _TRACE_JBD2_H */ | 165 | #endif /* _TRACE_JBD2_H */ |