Commit 5bd3b917 authored by José Fonseca's avatar José Fonseca

util/u_debug_flush: Use util_snprintf.

Reviewed-by: 's avatarBrian Paul <brianp@vmware.com>
Reviewed-by: 's avatarRoland Scheidegger <sroland@vmware.com>
parent 1c6154c9
......@@ -46,6 +46,7 @@
#include "util/u_hash_table.h"
#include "util/u_double_list.h"
#include "util/u_inlines.h"
#include "util/u_string.h"
#include "os/os_thread.h"
#include <stdio.h>
......@@ -320,8 +321,8 @@ debug_flush_might_flush_cb(void *key, void *value, void *data)
const char *reason = (const char *) data;
char message[80];
snprintf(message, sizeof(message),
"%s referenced mapped buffer detected.", reason);
util_snprintf(message, sizeof(message),
"%s referenced mapped buffer detected.", reason);
pipe_mutex_lock(fbuf->mutex);
if (fbuf->mapped_sync) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment