From f3ce932ee72deb019ae955e9880d3434f2d8d6b1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 31 Oct 2019 17:01:08 +0100 Subject: procfs: Fix asprintf format Last_processor is an int in the proc info, and there aren't really plans for machines with more than 4 billion processors. * procfs/process.c (process_file_gc_stat): Make last_processor unsigned instead of long unsigned. --- procfs/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'procfs/process.c') diff --git a/procfs/process.c b/procfs/process.c index f6d3a730..3bcf625b 100644 --- a/procfs/process.c +++ b/procfs/process.c @@ -231,7 +231,7 @@ process_file_gc_stat (struct proc_stat *ps, char **contents) process_t p; error_t err = proc_pid2proc (ps->context->server, ps->pid, &p); - long unsigned last_processor; + unsigned last_processor; #ifdef HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR last_processor = thsi->last_processor; -- cgit v1.2.3