1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
From 3a50d919a012551ab858370c03f43489f51eb152 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
Date: Mon, 15 Feb 2016 15:28:34 +0100
Subject: [PATCH 0321/1110] drm/amdgpu: print pid as integer
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
index 2f56bc6..ea6b52b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
@@ -721,9 +721,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);
--
2.7.4
|