Commit 9ac31288 authored by Vasily Averin's avatar Vasily Averin Committed by J. Bruce Fields

sunrpc: fix debug message in svc_create_xprt()

_svc_create_xprt() returns positive port number
so its non-zero return value is not an error
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 8f7766c8
......@@ -296,9 +296,9 @@ int svc_create_xprt(struct svc_serv *serv, const char *xprt_name,
request_module("svc%s", xprt_name);
err = _svc_create_xprt(serv, xprt_name, net, family, port, flags);
}
if (err)
if (err < 0)
dprintk("svc: transport %s not found, err %d\n",
xprt_name, err);
xprt_name, -err);
return err;
}
EXPORT_SYMBOL_GPL(svc_create_xprt);
......
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