diff mbox series

[PULL,3/4] net/slirp: fix the IPv6 prefix length error message

Message ID 1558084017-15947-4-git-send-email-jasowang@redhat.com (mailing list archive)
State New, archived
Headers show
Series [PULL,1/4] vhost_net: don't set backend for the uninitialized virtqueue | expand

Commit Message

Jason Wang May 17, 2019, 9:06 a.m. UTC
From: Stefano Garzarella <sgarzare@redhat.com>

Reword and add a missing parentheses at the end of the
error message.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 net/slirp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/net/slirp.c b/net/slirp.c
index 95934fb..b34cb29 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -498,7 +498,8 @@  static int net_slirp_init(NetClientState *peer, const char *model,
     }
     if (vprefix6_len < 0 || vprefix6_len > 126) {
         error_setg(errp,
-                   "Invalid prefix provided (prefix len must be in range 0-126");
+                   "Invalid IPv6 prefix provided "
+                   "(IPv6 prefix length must be between 0 and 126)");
         return -1;
     }