]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/dma-buf/sync_debug.c
Merge tag 'uuid-for-4.13-2' of git://git.infradead.org/users/hch/uuid
[linux.git] / drivers / dma-buf / sync_debug.c
index bfead12390f245954e42d28d7bfd9efb3d47ab6e..59a3b2f8ee91049e34cb5c12392ed1c44c52b212 100644 (file)
@@ -110,7 +110,7 @@ static void sync_print_fence(struct seq_file *s,
                }
        }
 
-       seq_puts(s, "\n");
+       seq_putc(s, '\n');
 }
 
 static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
@@ -132,9 +132,11 @@ static void sync_print_obj(struct seq_file *s, struct sync_timeline *obj)
 static void sync_print_sync_file(struct seq_file *s,
                                  struct sync_file *sync_file)
 {
+       char buf[128];
        int i;
 
-       seq_printf(s, "[%p] %s: %s\n", sync_file, sync_file->name,
+       seq_printf(s, "[%p] %s: %s\n", sync_file,
+                  sync_file_get_name(sync_file, buf, sizeof(buf)),
                   sync_status_str(dma_fence_get_status(sync_file->fence)));
 
        if (dma_fence_is_array(sync_file->fence)) {
@@ -161,7 +163,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
                                     sync_timeline_list);
 
                sync_print_obj(s, obj);
-               seq_puts(s, "\n");
+               seq_putc(s, '\n');
        }
        spin_unlock_irqrestore(&sync_timeline_list_lock, flags);
 
@@ -173,7 +175,7 @@ static int sync_debugfs_show(struct seq_file *s, void *unused)
                        container_of(pos, struct sync_file, sync_file_list);
 
                sync_print_sync_file(s, sync_file);
-               seq_puts(s, "\n");
+               seq_putc(s, '\n');
        }
        spin_unlock_irqrestore(&sync_file_list_lock, flags);
        return 0;