Skip to content

Commit 3dc6d83

Browse files
srishanmalexdeucher
authored andcommitted
drm/amdgpu: Fix non-standard format specifiers in 'amdgpu_show_fdinfo'
Fixes the following: WARNING: %Lu is non-standard C, use %llu + seq_printf(m, "drm-client-id:\t%Lu\n", vm->immediate.fence_context); WARNING: %Ld is non-standard C, use %lld + seq_printf(m, "drm-engine-%s:\t%Ld ns\n", amdgpu_ip_name[hw_ip], Cc: Guchun Chen <[email protected]> Cc: Christian König <[email protected]> Cc: Alex Deucher <[email protected]> Signed-off-by: Srinivasan Shanmugam <[email protected]> Reviewed-by: Guchun Chen <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8cbbd11 commit 3dc6d83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file)
8989
drm_printf(p, "pasid:\t%u\n", fpriv->vm.pasid);
9090
drm_printf(p, "drm-driver:\t%s\n", file->minor->dev->driver->name);
9191
drm_printf(p, "drm-pdev:\t%04x:%02x:%02x.%d\n", domain, bus, dev, fn);
92-
drm_printf(p, "drm-client-id:\t%Lu\n", vm->immediate.fence_context);
92+
drm_printf(p, "drm-client-id:\t%llu\n", vm->immediate.fence_context);
9393
drm_printf(p, "drm-memory-vram:\t%llu KiB\n", stats.vram/1024UL);
9494
drm_printf(p, "drm-memory-gtt: \t%llu KiB\n", stats.gtt/1024UL);
9595
drm_printf(p, "drm-memory-cpu: \t%llu KiB\n", stats.cpu/1024UL);
@@ -109,7 +109,7 @@ void amdgpu_show_fdinfo(struct drm_printer *p, struct drm_file *file)
109109
if (!usage[hw_ip])
110110
continue;
111111

112-
drm_printf(p, "drm-engine-%s:\t%Ld ns\n", amdgpu_ip_name[hw_ip],
112+
drm_printf(p, "drm-engine-%s:\t%lld ns\n", amdgpu_ip_name[hw_ip],
113113
ktime_to_ns(usage[hw_ip]));
114114
}
115115
}

0 commit comments

Comments
 (0)