summaryrefslogtreecommitdiff
path: root/src/bootchart/log.c
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-07 08:52:55 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-07 16:09:25 +0100
commitb9a496c166c35f670b1f0fce8745bc5df5ea74ad (patch)
tree4fac504feddae23799d45d51c7904022c3e16813 /src/bootchart/log.c
parente90f9fa4d1cab6f73fc502fe9ef705c1bb2912a0 (diff)
bootchart: rename global len to samples_len
Diffstat (limited to 'src/bootchart/log.c')
-rw-r--r--src/bootchart/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootchart/log.c b/src/bootchart/log.c
index 1e3f4a9e8c..43999f23cf 100644
--- a/src/bootchart/log.c
+++ b/src/bootchart/log.c
@@ -264,7 +264,7 @@ schedstat_next:
ps = ps->next_ps;
ps->pid = pid;
- ps->sample = calloc(len + 1, sizeof(struct ps_sched_struct));
+ ps->sample = calloc(samples_len + 1, sizeof(struct ps_sched_struct));
if (!ps->sample) {
perror("calloc(ps_struct)");
exit (EXIT_FAILURE);