History

kmemtrace: fix printk format warnings

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'

Randy Dunlap committed 17 years ago

Commit cc2f6d91 parent 5ce1b1e1 file · +2 −2Browse files

Unified · Split

kernel/trace/kmemtrace.c+2−2
@@ -139,12 +139,12 @@ kmemtrace_print_alloc_compress(struct trace_iterator *iter, · 138 unmodified lines
139139 return TRACE_TYPE_PARTIAL_LINE;
140140
141141 /* Requested */
142− ret = trace_seq_printf(s, "%4ld ", entry->bytes_req);
142+ ret = trace_seq_printf(s, "%4zd ", entry->bytes_req);
143143 if (!ret)
144144 return TRACE_TYPE_PARTIAL_LINE;
145145
146146 /* Allocated */
147− ret = trace_seq_printf(s, "%4ld ", entry->bytes_alloc);
147+ ret = trace_seq_printf(s, "%4zd ", entry->bytes_alloc);
148148 if (!ret)
149149 return TRACE_TYPE_PARTIAL_LINE;
150150