aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-09-12 01:30:48 +0300
committerVadim Yanitskiy <axilirator@gmail.com>2017-09-12 01:30:48 +0300
commite8b882412b035637bec7edbd8b885c026e4f7040 (patch)
treec996982abd97f56de4ac0bb6e12a210826ede3a2
parentb755032efda89dc2d16356dbaec3f9cdfded4354 (diff)
procqueue: allocate an output buffer as named chunk
The talloc_size() call sets the current file name and the current line number as name for chunk being allocated. This combination is not so informative during debugging, so let's use the static '.buffer' string as context name for item's output buffer.
-rw-r--r--src/procqueue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procqueue.c b/src/procqueue.c
index 5a75296..78dee4d 100644
--- a/src/procqueue.c
+++ b/src/procqueue.c
@@ -174,7 +174,7 @@ osmo_gapk_pq_prepare(struct osmo_gapk_pq *pq)
buf_size = VAR_BUF_SIZE;
/* Allocate memory for an output buffer */
- item->buf = talloc_size(item, buf_size);
+ item->buf = talloc_named_const(item, buf_size, ".buffer");
if (!item->buf)
return -ENOMEM;
}