From: Christian König Date: Mon, 15 Feb 2016 14:28:34 +0000 (+0100) Subject: drm/amdgpu: print pid as integer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3e4ae1dcbb8c821b855c39d75ae0f412ad1ab71a;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amdgpu: print pid as integer Not sure why somebody thought that this is a long. Signed-off-by: Christian König Reviewed-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index b1a611e79c94..8689e4a81783 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c @@ -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);