mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
ion: cma: Update print_debug function
Change-Id: Ia659c05926c39e23307339e0976d9e72f808473a
This commit is contained in:
parent
f35a335e0b
commit
b4569e784e
1 changed files with 3 additions and 6 deletions
|
@ -322,22 +322,19 @@ int ion_cma_cache_ops(struct ion_heap *heap,
|
|||
}
|
||||
|
||||
static int ion_cma_print_debug(struct ion_heap *heap, struct seq_file *s,
|
||||
const struct rb_root *mem_map)
|
||||
const struct list_head *mem_map)
|
||||
{
|
||||
if (mem_map) {
|
||||
struct rb_node *n;
|
||||
struct mem_map_data *data;
|
||||
|
||||
seq_printf(s, "\nMemory Map\n");
|
||||
seq_printf(s, "%16.s %14.s %14.s %14.s\n",
|
||||
"client", "start address", "end address",
|
||||
"size (hex)");
|
||||
|
||||
for (n = rb_first(mem_map); n; n = rb_next(n)) {
|
||||
struct mem_map_data *data =
|
||||
rb_entry(n, struct mem_map_data, node);
|
||||
list_for_each_entry(data, mem_map, node) {
|
||||
const char *client_name = "(null)";
|
||||
|
||||
|
||||
if (data->client_name)
|
||||
client_name = data->client_name;
|
||||
|
||||
|
|
Loading…
Reference in a new issue