diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-27 14:13:42 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2020-01-27 14:13:45 +0100 |
commit | 79ea9d8fec5889d692a0e73561395f2da83f7796 (patch) | |
tree | 39f9ef71cb470b9ebaaeb523682b8d9ff772ab62 | |
parent | 68ccb8021a838066f0951d4b2817eb6b6f10a843 (diff) | |
download | slirp-79ea9d8fec5889d692a0e73561395f2da83f7796.zip slirp-79ea9d8fec5889d692a0e73561395f2da83f7796.tar.gz slirp-79ea9d8fec5889d692a0e73561395f2da83f7796.tar.bz2 |
misc: improve error report
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |