OSDN Git Service

drm/amdgpu: print pid as integer
authorChristian König <christian.koenig@amd.com>
Mon, 15 Feb 2016 14:28:34 +0000 (15:28 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Feb 2016 22:31:15 +0000 (17:31 -0500)
Not sure why somebody thought that this is a long.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c

index b1a611e..8689e4a 100644 (file)
@@ -720,9 +720,9 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
                        placement = " CPU";
                        break;
                }
-               seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8ld\n",
+               seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8d\n",
                           i, amdgpu_bo_size(rbo) >> 10, amdgpu_bo_size(rbo) >> 20,
-                          placement, (unsigned long)rbo->pid);
+                          placement, rbo->pid);
                i++;
        }
        mutex_unlock(&adev->gem.mutex);