Fix kmemtrace printk warnings: kernel/trace/kmemtrace.c:142: warning: format '%4ld' expects type 'long int', but argument 3 has type 'size_t' kernel/trace/kmemtrace.c:147: warning: format '%4ld' expects type 'long int', but argument 3 has type 'size_t'
Unified · Split
| @@ -139,12 +139,12 @@ kmemtrace_print_alloc_compress(struct trace_iterator *iter, · 138 unmodified lines | |||
| 139 | return TRACE_TYPE_PARTIAL_LINE; | 139 | return TRACE_TYPE_PARTIAL_LINE; |
| 140 | 140 | ||
| 141 | /* Requested */ | 141 | /* Requested */ |
| 142 | ret = trace_seq_printf(s, "%4ld ", entry->bytes_req); | 142 | ret = trace_seq_printf(s, "%4zd ", entry->bytes_req); |
| 143 | if (!ret) | 143 | if (!ret) |
| 144 | return TRACE_TYPE_PARTIAL_LINE; | 144 | return TRACE_TYPE_PARTIAL_LINE; |
| 145 | 145 | ||
| 146 | /* Allocated */ | 146 | /* Allocated */ |
| 147 | ret = trace_seq_printf(s, "%4ld ", entry->bytes_alloc); | 147 | ret = trace_seq_printf(s, "%4zd ", entry->bytes_alloc); |
| 148 | if (!ret) | 148 | if (!ret) |
| 149 | return TRACE_TYPE_PARTIAL_LINE; | 149 | return TRACE_TYPE_PARTIAL_LINE; |
| 150 | 150 | ||