aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-27 14:13:42 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-27 14:13:45 +0100
commit79ea9d8fec5889d692a0e73561395f2da83f7796 (patch)
tree39f9ef71cb470b9ebaaeb523682b8d9ff772ab62 /src
parent68ccb8021a838066f0951d4b2817eb6b6f10a843 (diff)
downloadslirp-79ea9d8fec5889d692a0e73561395f2da83f7796.zip
slirp-79ea9d8fec5889d692a0e73561395f2da83f7796.tar.gz
slirp-79ea9d8fec5889d692a0e73561395f2da83f7796.tar.bz2
misc: improve error report
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index e3b6257..b8cdbe2 100644
--- a/src/util.c
+++ b/src/util.c
@@ -393,7 +393,7 @@ int slirp_fmt(char *str, size_t size, const char *format, ...)
va_end(args);
if (rv > size) {
- g_critical("vsnprintf() truncation");
+ g_critical("slirp_fmt() truncation");
}
return MIN(rv, size);
@@ -416,7 +416,7 @@ int slirp_fmt0(char *str, size_t size, const char *format, ...)
va_end(args);
if (rv >= size) {
- g_critical("vsnprintf() truncation");
+ g_critical("slirp_fmt0() truncation");
if (size > 0)
str[size - 1] = '\0';
rv = size;