summaryrefslogtreecommitdiff
path: root/overlay/gem-objects.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-08-24 12:37:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2013-08-25 13:34:31 +0100
commita932c73ab7b0e768ceb723ec280847e55c5cf495 (patch)
tree5c36b01199344f002ec9a43550e48544c6ad4d0c /overlay/gem-objects.c
parent68c63ddd36bc8e5379bf9573c24894246f5d0aa7 (diff)
overlay: simplify types for object counts for 32/64bit porting
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'overlay/gem-objects.c')
-rw-r--r--overlay/gem-objects.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/overlay/gem-objects.c b/overlay/gem-objects.c
index 8c8ae21b..d5044bc0 100644
--- a/overlay/gem-objects.c
+++ b/overlay/gem-objects.c
@@ -119,11 +119,11 @@ int gem_objects_update(struct gem_objects *obj)
b = buf;
- sscanf(b, "%d objects, %ld bytes",
+ sscanf(b, "%lu objects, %lu bytes",
&obj->total_count, &obj->total_bytes);
b = strchr(b, '\n');
- sscanf(b, "%*d [%*d] objects, %ld [%ld] bytes in gtt",
+ sscanf(b, "%*d [%*d] objects, %lu [%lu] bytes in gtt",
&obj->total_gtt, &obj->total_aperture);
ret = 0;
@@ -144,7 +144,7 @@ int gem_objects_update(struct gem_objects *obj)
break;
/* Xorg: 35 objects, 16347136 bytes (0 active, 12103680 inactive, 0 unbound) */
- sscanf(++b, "%256s %u objects, %lu bytes",
+ sscanf(++b, "%256s %lu objects, %lu bytes",
comm->name, &comm->count, &comm->bytes);
insert_sorted(obj, comm);