summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2019-10-31 17:01:08 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-10-31 17:01:08 +0100
commitf3ce932ee72deb019ae955e9880d3434f2d8d6b1 (patch)
treebc18b14aa51c6af52aab5ff7cd1912e6afd89cbe
parent4a1f2d3866defbdc9386b52051c1d8540a8db451 (diff)
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.
-rw-r--r--procfs/process.c2
1 files changed, 1 insertions, 1 deletions
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;