aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorStefano Garzarella <sgarzare@redhat.com>2019-05-15 11:08:05 +0200
committerJason Wang <jasowang@redhat.com>2019-05-17 17:00:12 +0800
commit178a0a5dea382ac13bc2cdd3c9c4c5728a40b06b (patch)
treec7326304332814a79b7e15ac419b11f38e713ed5 /net
parent427ceb0fecf7afcfd76ae65f7197188b2842d385 (diff)
downloadqemu-178a0a5dea382ac13bc2cdd3c9c4c5728a40b06b.zip
qemu-178a0a5dea382ac13bc2cdd3c9c4c5728a40b06b.tar.gz
qemu-178a0a5dea382ac13bc2cdd3c9c4c5728a40b06b.tar.bz2
net/slirp: fix the IPv6 prefix length error message
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>
Diffstat (limited to 'net')
-rw-r--r--net/slirp.c3
1 files changed, 2 insertions, 1 deletions
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;
}