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 | 139 | return TRACE_TYPE_PARTIAL_LINE; |
| 140 | 140 | |
| 141 | 141 | /* Requested */ |
| 142 | − ret = trace_seq_printf(s, "%4ld ", entry->bytes_req); | |
| 142 | + ret = trace_seq_printf(s, "%4zd ", entry->bytes_req); | |
| 143 | 143 | if (!ret) |
| 144 | 144 | return TRACE_TYPE_PARTIAL_LINE; |
| 145 | 145 | |
| 146 | 146 | /* Allocated */ |
| 147 | − ret = trace_seq_printf(s, "%4ld ", entry->bytes_alloc); | |
| 147 | + ret = trace_seq_printf(s, "%4zd ", entry->bytes_alloc); | |
| 148 | 148 | if (!ret) |
| 149 | 149 | return TRACE_TYPE_PARTIAL_LINE; |
| 150 | 150 | |