summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndres Gomez <[email protected]>2018-08-01 15:55:51 +0300
committerAndres Gomez <[email protected]>2018-08-02 10:06:44 +0300
commitd7694136d364364db4cf9d3ce850720efe4f1f4a (patch)
treed11d5feb543bb4d87789a4957283df061962dcad /src
parent18d9dc179f78f68e598cb21143743dbd71197c93 (diff)
kutil/queue: use util_snprintf() in util_queue_init
Instead of plain snprintf(). To fix the MSVC 2013 build: Compiling src\util\u_queue.c ... u_queue.c src\util\u_queue.c(325) : warning C4013: 'snprintf' undefined; assuming extern returning int ... mesautil.lib(u_queue.obj) : error LNK2001: unresolved external symbol _snprintf scons: building terminated because of errors. Fixes: b238e33bc9d ("kutil/queue: add a process name into a thread name") Cc: Marek Olšák <[email protected]> Cc: Brian Paul <[email protected]> Cc: Roland Scheidegger <[email protected]> Cc: Timothy Arceri <[email protected]> Cc: Eric Engestrom <[email protected]> Signed-off-by: Andres Gomez <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/util/u_queue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/u_queue.c b/src/util/u_queue.c
index 4ce1af518b3..22d2cdd0fa2 100644
--- a/src/util/u_queue.c
+++ b/src/util/u_queue.c
@@ -322,10 +322,10 @@ util_queue_init(struct util_queue *queue,
memset(queue, 0, sizeof(*queue));
if (process_len) {
- snprintf(queue->name, sizeof(queue->name), "%.*s:%s",
- process_len, process_name, name);
+ util_snprintf(queue->name, sizeof(queue->name), "%.*s:%s",
+ process_len, process_name, name);
} else {
- snprintf(queue->name, sizeof(queue->name), "%s", name);
+ util_snprintf(queue->name, sizeof(queue->name), "%s", name);
}
queue->flags = flags;