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: b238e33bc9
("kutil/queue: add a process name into a thread name")
Cc: Marek Olšák <marek.olsak@amd.com>
Cc: Brian Paul <brianp@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Cc: Timothy Arceri <tarceri@itsqueeze.com>
Cc: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
18d9dc179f
commit
d7694136d3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue