From a932c73ab7b0e768ceb723ec280847e55c5cf495 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sat, 24 Aug 2013 12:37:59 +0100 Subject: overlay: simplify types for object counts for 32/64bit porting Signed-off-by: Chris Wilson --- overlay/gem-objects.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'overlay/gem-objects.c') 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); -- cgit v1.2.3